Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
## 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.0.22-stable/libevent-2.0.22-stable.tar.gz
tar -zxvf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-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.2/tmux-2.2.tar.gz
tar -zxvf tmux-2.2.tar.gz
cd tmux-2.2/
./configure && 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
@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Apr 27, 2017

This procedure safely works with tmux 2.4
I had to run
ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5
though before tmux could be executed

@jones77

This comment has been minimized.

Copy link

@jones77 jones77 commented May 17, 2017

Yup, can confirm 2.4 also works.

Note: An alternative to slechner-glossy's ln is to use LD_LIBRARY_PATH=/usr/local/lib tmux -V

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.