Skip to content

Instantly share code, notes, and snippets.

@libin
Forked from solar/libevent-2.0.20-stable.sh
Last active May 17, 2016 20:34
Show Gist options
  • Save libin/b058b220a47ff81f168d919e485e1724 to your computer and use it in GitHub Desktop.
Save libin/b058b220a47ff81f168d919e485e1724 to your computer and use it in GitHub Desktop.
Install libevent and tmux on CentOS/RH 6.3
curl -sL https://github.com/downloads/libevent/libevent/libevent-2.0.18-stable.tar.gz | tar zx
cd libevent-2.0.18-stable/
./configure --prefix=/usr/local/libevent/2.0.18-stable
make
sudo make install
sudo alternatives --install /usr/local/lib64/libevent libevent /usr/local/libevent/2.0.18-stable/lib 20018 \
--slave /usr/local/include/libevent libevent-include /usr/local/libevent/2.0.18-stable/include \
--slave /usr/local/bin/event_rpcgen.py event_rpcgen /usr/local/libevent/2.0.18-stable/bin/event_rpcgen.py
sudo echo '/usr/local/lib64/libevent' > /etc/ld.so.conf.d/libevent.conf
sudo ldconfig
curl -sL "http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.6/tmux-1.6.tar.gz?r=http%3A%2F%2Ftmux.sourceforge.net%2F&ts=1335928688&use_mirror=jaist" | tar zx
cd tmux-1.6/
CFLAGS="-I/usr/local/include/libevent" LDFLAGS="-L/usr/local/lib64/libevent" ./configure --prefix=/usr/local/tmux/1.6
make
sudo make install
sudo alternatives --install /usr/local/bin/tmux tmux /usr/local/tmux/1.6/bin/tmux 10600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment