tar zxvf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure
make && make install
安装tmux
tar zxvf tmux-2.7.tar.gz
cd tmux-2.7
./configure
make && make install
注意事项:
安装tmux时如果报错缺少相关依赖包:
yum install ncurses-devel
安装完成后使用时报错:
tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory
//解决办法:
ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5