Skip to content

Instantly share code, notes, and snippets.

@equalunique
Forked from sturadnidge/tmux-1.8-on-CentOS-6.x.txt
Last active August 29, 2015 13:59
Show Gist options
  • Save equalunique/10542575 to your computer and use it in GitHub Desktop.
Save equalunique/10542575 to your computer and use it in GitHub Desktop.
# download latest libevent2 and tmux sources, and extract them somewhere
# (thx bluejedi for tip on latest tmux URL)
#
# at the time of writing:
# https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
# http://sourceforge.net/projects/tmux/files/latest/download?source=files
#
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
wget http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.9/tmux-1.9a.tar.gz
tar -xvf ./tmux-1.9a.tar.gz
tar -xvf ./libevent-2.0.21-stable.tar.gz
# install deps
yum install gcc kernel-devel make ncurses-devel
# build libevent2
cd ./libevent-2.0.21-stable
./configure --prefix=/usr/local
make && make install
cd ..
# build tmux
cd ./libevent-2.0.21-stable
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local
make && make install
# you're good to go, for a sample ~/.tmux.conf check out
# https://github.com/sturadnidge/misc/blob/master/.tmux.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment