Original article: https://gist.github.com/rothgar/cecfbd74597cc35a6018
# Install tmux on centos release 6.5
# Install deps
Yum install GCC kernel-devel make ncurses-devel
# Download sources for libevent and make and install
Curl-ol https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
Tar-xvzf libevent-2.0.21-stable.tar.gz
CD libevent-2.0.21-stable
./Configure -- prefix =/usr/local
Make
Sudo make install
# Download sources for tmux and make and install
Curl-ol http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz
Tar-xvzf tmux-1.9a.tar.gz
CD tmux-1.9a
Ldflags = "-l/usr/local/lib-wl,-rpath =/usr/local/lib"./configure -- prefix =/usr/local
Make
Sudo make install
# Pkill tmux
# Close your terminal window (flushes cached tmux executable)
# Open new shell and check tmux version
Tmux-V
====================================
If an error occurs during installation:
Use of tmux-Window Manager
Tmux introduction:
Tmux is a substitute for screen implemented by BSD. Compared with screen, tmux is more advanced: it supports screen splitting and has rich command line parameters, allowing it to flexibly and dynamically perform various la S and operations. It can start up with a command (powerful configuration), with the terminal on the left and VIM on the right, and GDB on the bottom-in short, it is a flexible IDE, you are still configuring.
The effect is as follows:
(1) An error is reported when tmux executes make:
Control. C: In function 'control _ callback ':
Control. C: 103: Warning: Implicit declaration of function 'evbuffer _ readln'
Control. C: 103: Error: 'evbuffer _ eol_lf 'undeclared (first use in this function)
Control. C: 103: Error: (each undeclared identifier is reported only once
Control. C: 103: Error: for each function it appears in .)
Make: *** [control. O] Error 1
The reason is the lack of libevent. If the above steps are not installed or the version is too low, you can reinstall them.
Centos installation of tmux