Context
- linux Centos6.5,64位
- tmux 2.7
流程
下載安裝libevent
先安裝libevent,在后面編譯好tmux后會鏈接到這里來
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar zxvf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure
make && make install
安裝tmux
wget https://github.com/tmux/tmux/releases/download/2.7/tmux-2.7.tar.gz
tar zxvf tmux-2.7.tar.gz
cd tmux-2.7
./configure
make && make install
在執(zhí)./configure
的時候可能遇到的問題
- configure: error: no acceptable C compiler found in $PATH
解決的辦法是:
yum install gcc
- configure: error: "curses not found"
這個問題解決辦法是:
yum install ncurses-devel
然后make && make install
完成之后輸入tmux
檢驗是否安裝成功,這時候可能會出現(xiàn)異常
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`
在輸入tmux
應(yīng)該就成功了。