# 首先需要安装这个库
# http://libevent.org/
wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
tar -zxvf libevent-2.1.8-stable.tar.gz
cd libevent-2.1.8-stable
bash configure
make -j 4
sudo make install
# 链接
sudo ln -s /usr/local/lib/libevent-2.1.so.6 /lib64/libevent-2.1.so.6
sudo ln -s /usr/local/lib/libevent-2.1.so.6 /lib/libevent-2.1.so.6
sudo apt install ncurses-dev
# 然后下载tmux
# https://github.com/tmux/tmux/wiki
cd
wget https://github.com/tmux/tmux/releases/download/2.9/tmux-2.9.tar.gz
tar -zxvf tmux-2.9.tar.gz
cd tmux-2.9
bash configure
make -j4
sudo make install
# 检查tmux版本
tmux -V