text 在CentOS 6.8上安装最新的tmux(现在2.3)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 在CentOS 6.8上安装最新的tmux(现在2.3)相关的知识,希望对你有一定的参考价值。

## you may need sudo permission to execute some commands or swith to root
# if installed old version by yum, remove it first
# sudo yum remove tmux libevent libevent-devel libevent-headers

# install deps
sudo yum install gcc kernel-devel make ncurses-devel

# create temp dir
mkdir /tmp/for-latest-tmux

# downloads libenvent and install
cd /tmp/for-latest-tmux/ && mkdir ./libenvent && cd ./libenvent
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/
./configure && make
sudo make install

# downloads tmux and install
cd /tmp/for-latest-tmux/ && mkdir ./tmux && cd ./tmux
wget https://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz
tar -zxvf tmux-2.3.tar.gz
cd tmux-2.3/
# other examples are missing this LDFLAGS part to correctly link the new copy of libevent
./configure LDFLAGS="-Wl,-rpath,/usr/local/lib" && make
sudo make install

# kill the running tmux
# close your terminal window (flushes cached tmux executable)
# open new shell and check tmux version
pkill tmux
tmux -V

# remove temp dir if needed
rm -rf /tmp/for-latest-tmux

以上是关于text 在CentOS 6.8上安装最新的tmux(现在2.3)的主要内容,如果未能解决你的问题,请参考以下文章

基于CentOS 6.8平台最新源代码包MariaDB数据库企业版安装

基于CentOS 6.8平台最新源代码包编译安装LNMP环境搭建(Nginx+MySQL+PHP)

在 Centos 6.8 上安装节点

基于CentOS 6.8平台最新源代码包LAMP环境搭建(Apache+MySQL+PHP)

centos6.5/6.8上安装nghttp2失败

CentOS Linux 6.8正式发布