tmux安装过程

it2022-05-09  37

tmux终端复用安装教程(非root用户)

如果不是服务器管理员的话,需要从源码安装,首先下载安装包: 执行命令:

wget https://github.com/tmux/tmux/releases/download/2.2/tmux-2.2.tar.gz wget https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz wget http://ftp.gnu.org/gnu/ncurses/ncurses-6.0.tar.gz

用 tar -zxvf 命令解压

安装

#libevent ./configure --prefix=$HOME/.local --disable-shared make make install #ncurses ./configure --prefix=$HOME/.local make make install #tmux ./configure CFLAGS="-I$HOME/.local/include -I$HOME/.local/include/ncurses" LDFLAGS="-L$HOME/.local/lib -L$HOME/.local/include/ncurses -L$HOME/.local/include" CPPFLAGS="-I$HOME/.local/include -I$HOME/.local/include/ncurses" LDFLAGS="-static -L$HOME/.local/include -L$HOME/.local/include/ncurses -L$HOME/.local/lib" make cp tmux $HOME/.local/bin

然后配置环境: vim ~/.bashrc

#将下面的语句添加到.bashrc中 export $PATH="$HOME/.local/bin:$PATH"

重载环境 source .bashrc 安装完成

来源:https://www.jianshu.com/p/f7f24b4b2625


最新回复(0)