几点收获
1、tmux是什么
类似screen
2、参考资料
AWSEC2下linux管理软件的官方文档
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/compile-software.html
error while loading shared libraries: xxx.so.x" 错误的原因和解决办法
http://blog.csdn.net/sahusoft/article/details/7388617
3、安装过程
从官网下载最新的tmux和依赖的libevent cursor
http://sourceforge.net/projects/tmux
http://sourceforge.net/projects/levent (http://libevent.org/)
http://ftp.gnu.org/pub/gnu/ncurses/ (http://www.gnu.org/software/ncurses/)
先看下README,然后依次编译安装
$ ./configure
$ make
$ sudo make install
4、遇到的异常情况
tmux编译安装完成后
$tmux
提示
tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory
因为libevent默认在/usr/local/lib,tmux找不到,于是安装后进行了操作
# echo "/usr/local/lib" >> /etc/ld.so.conf
# ldconfig
查看原文:http://blog.indexroot.net/2015/07/12/amazon-linux-compile-install-tmux/