Skip to content

Instantly share code, notes, and snippets.

@rr-paras-patel
Created September 22, 2014 01:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rr-paras-patel/2366fe4e8b3acbc8d4ef to your computer and use it in GitHub Desktop.
Save rr-paras-patel/2366fe4e8b3acbc8d4ef to your computer and use it in GitHub Desktop.
Tmux installation - CentOS
#!/bin/bash
wget http://downloads.sourceforge.net/tmux/tmux-1.8.tar.gz
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar zxvf tmux-1.8.tar.gz
tar zxvf libevent-2.0.21-stable.tar.gz
yum install gcc kernel-devel make ncurses-devel -y
# cd to libevent2 src
cd libevent-2.0.21-stable
./configure --prefix=/usr/local
make && make install
# cd to tmux src
cd ../tmux-1.8
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local
make && make install
cd ~/
export PATH=$PATH:/usr/local/bin
rm -rf tmux-1.8 libevent-2.0.21-stable tmux-1.8.tar.gz libevent-2.0.21-stable.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment