Install tmux on RHEL/CentOS 5 and 6


Install tmux on RHEL/CentOS 5 and 6



# install deps

yum install gcc kernel-devel make ncurses-devel

# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL

wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz

tar -xvzf libevent-2.0.21-stable.tar.gz

cd libevent-2.0.21-stable

./configure --enable-shared --prefix=/usr/local

make

sudo make install


# DOWNLOAD SOURCES FOR TMUX AND MAKE AND INSTALL

wget https://github.com/tmux/tmux/releases/download/2.7/tmux-2.7.tar.gz

tar -xvzf tmux-2.7.tar.gz

cd tmux-2.7

./configure --prefix=/usr/local LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib"  
 
make

sudo make install


# pkill tmux

# close your terminal window (flushes cached tmux executable)

# open new shell and check tmux version
tmux -V


Tutorial for TMUX





2 Comments

  1. Great! works nicely.

    ReplyDelete
    Replies
    1. just installed on an old RH 5.11 , all ok!

      Delete
Previous Post Next Post