Skip to content

Instantly share code, notes, and snippets.

@bekbulatov
Last active April 18, 2016 10:56
Show Gist options
  • Save bekbulatov/f6c6617e1543f68e7997 to your computer and use it in GitHub Desktop.
Save bekbulatov/f6c6617e1543f68e7997 to your computer and use it in GitHub Desktop.
Centos tmux install
sudo yum install autoconf automake libtool ncurses-devel
mkdir -p ~/opt ~/tmp
# install libevent
cd ~/tmp
git clone https://github.com/libevent/libevent.git
cd libevent/
git checkout release-2.0.21-stable
sh autogen.sh
./configure --prefix=$HOME/opt
make
make install
# install tmux
cd ~/tmp
git clone https://github.com/tmux/tmux.git tmux
cd tmux
git checkout 2.0
sh autogen.sh
export LIBEVENT_CFLAGS="-I$HOME/opt/include"
export LIBEVENT_LIBS="-L$HOME/opt/lib -Wl,-rpath=$HOME/opt/lib -levent"
export LDFLAGS="-L$HOME/opt/lib -Wl,-rpath=$HOME/opt/lib"
./configure --prefix=$HOME/opt
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment