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

e · l · n

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

About Bionics IT

Bionics IT currently serving as a research and development blog for Samuel Lampa, a PhD student (Pharmaceutical Bioinformatics at Uppsala University).

Find me elsewhere on the web:

A shameless little plug

Do you want to get faster on using the commandline? ... and help me pay my linode and and domain fees at the same time? :)
Then feel free to check out my
commandline productivity course!

Latest posts