参考: How to install TMUX on Linux? (with and without root access)
官网:https://github.com/tmux/tmux/wiki
依赖:libevent
官网: http://libevent.org/
依赖:ncurses
官网: http://invisible-island.net/ncurses/#download_ncurses
[root@localhost soft]# pwd
/opt/soft
wget https://github.com/tmux/tmux/releases/download/2.6/tmux-2.6.tar.gz
wget http://invisible-island.net/datafiles/release/ncurses.tar.gz
wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
tar zxf tmux-2.6.tar.gz
tar xzf libevent-2.1.8-stable.tar.gz
tar zxf ncurses.tar.gz
[root@localhost libevent-2.1.8-stable]# pwd
/opt/soft/libevent-2.1.8-stable[root@localhost libevent-2.1.8-stable]# ./configure --prefix=/usr/local/tmux --disable-shared
make
make install
[root@localhost ncurses-6.1]# pwd
/opt/soft/ncurses-6.1
[root@localhost ncurses-6.1]# ./configure --prefix=/usr/local/tmux
make
make install
[root@localhost tmux-2.6]# pwd
/opt/soft/tmux-2.6
make
make install
查看版本:tmux -V
如果出现错误,请看解决方案:http://blog.csdn.net/michaelehome/article/details/79569912
[root@localhost tmux-2.6]# tmux -V
tmux: error while loading shared libraries: libevent-2.1.so.6: cannot open shared object file: No such file or directory