This recipe is for compiling from source the latest version of tmux. Tested on ubuntu 11.04
Install prerequisites
aptitude install libncurses5-dev
Install libevent
Get latest version from: http://libevent.org/ Show archive.org snapshot
Configure for installation in an alternate location:
tar xvfz libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=$HOME/bin/libevent
make
make install
And now, tmux
Get latest version of tmux from http://tmux.sourceforge.net/ Show archive.org snapshot
tar xvfz tmux-1.7.tar.gz
cd tmux-1.7
DIR="$HOME/bin/libevent"
./configure --prefix=$HOME/bin/tmux CFLAGS="-I$DIR/include" LDFLAGS="-L$DIR/lib"
make
make install
Configure the execution environment
Add the following lines to your .bashrc
file. This is to indicate where libevent is located and to use the compiled version of tmux instead of the older one (e.g. if it was installed with dpkg):
export LD_LIBRARY_PATH=${HOME}/bin/libevent/lib/:${LD_LIBRARY_PATH}
export PATH=${HOME}/bin/tmux/bin:${PATH}
export MANPATH=${HOME}/bin/tmux/share/man:${MANPATH}
# In order to work with 256 colors
export TERM="xterm-256color"
Close your session and login again.
References
Posted by Saul to Saul (2012-12-13 17:33)