如果在公司的環境,沒有root權限,需要安裝 tmux 在你自己的home下:
(cd to your home)
/remote/home1/AAA
(wget libevent and tmux, and then uncompress them)
Tar -xvzf libevent-2.0.20-stable.tar.gz
tar -xvzf tmux-1.7.tar.gz
cd libevent-2.0.20-stable
./congiure --prefix=/remote/home1/AAA/tmux-1.7_Install
make
make install
cd ../tmux-1.7
setenv PKG_CONFIG_PATH /remote/home1/AAA/libevent-2.0.20-stable
./configure --prefix=/remote/home1/AAA/tmux-1.7_Install
make
make install
在產生makefile后,需要手動在makefile修改一個問題: 刪除include路徑中的 -I-, 因為 libevent lib path 已經被包含了.
am__append_7 = -I. -I- -I/usr/local/include
有root權限的安裝非常簡單,例如CentOS安裝Tmux
yum install libevent-devel ncurses-devel
或進入進tmux的sourceforge主頁http://tmux.sourceforge.net/,wget之
然后:
tar -zxvf tmux-1.6.tar.gz
cd tmux-1.6
./configure
make
make install
完!