How to compile tmux 2.0 on RHEL6 / SL6 to get zoomable panes

e · l · n
Aug 20, 2015

I needed to do this, to get the "zoomable", or "maximizable" panes feature of tmux 1.8+ on UPPMAX, which has only tmux 2.6, so here follows the steps I took:

cd ~/src
# Download and unpack libevent (needed by tmux)
tar -zxvf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable
# Compile and install libevent
./configure --prefix=$HOME
make install
# Download and unpack tmux
tar -zxvf tmux-2.0.tar.gz
# Compile and install tmux
cd tmux-2.0
export LDFLAGS="-L$HOME/lib"
export CPPFLAGS="-I$HOME/include"
./configure --prefix=$HOME
make install
# Kill any running tmux servers
ps aux | grep samuel | grep tmux | awk '{ print $2 }' | xargs kill -9
# Check tmux version
tmux -V