Skip to main content

centos 安装 tmux

One min read

先设置个代理

export http_proxy="http://192.168.31.31:9999"
export https_proxy="http://192.168.31.31:9999"

安装前置依赖

yum install libevent ncurses
yum install libevent-devel ncurses-devel gcc make bison pkg-config

安装

wget https://github.com/tmux/tmux/releases/download/3.2a/tmux-3.2a.tar.gz
tar -zxf tmux-*.tar.gz
cd tmux-*/
./configure
make && sudo make install

检查

tmux -V

搞定

搞定

推荐一个使用说明(最下面有个配置推荐 放好~/.tmux.conf 然后重开就好了)

找不到 libevent 的问题

tmux: error while loading shared libraries: libevent_core-2.1.so.6: cannot open shared object file: No such file or directory

问题 1

cp /usr/local/lib/libevent-2.1.so.6 /lib64/libevent-2.1.so.6
cp /usr/local/lib/libevent_core-2.1.so.6 /lib64/libevent_core-2.1.so.6

.

Loading Comments...