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
#!/bin/sh
curl -sL 'https://github.com/downloads/libevent/libevent/libevent-2.0.22-stable.tar.gz' | tar zx
cd libevent-2.0.20-stable/
./configure --prefix=/usr/local/libevent/2.0.22-stable
make
sudo make install
sudo alternatives --install /usr/local/lib64/libevent libevent /usr/local/libevent/2.0.22-stable/lib 20018 \
--slave /usr/local/include/libevent libevent-include /usr/local/libevent/2.0.22-stable/include \
--slave /usr/local/bin/event_rpcgen.py event_rpcgen /usr/local/libevent/2.0.22-stable/bin/event_rpcgen.py
sudo su -c 'echo "/usr/local/lib64/libevent" > /etc/ld.so.conf.d/libevent.conf'
sudo ldconfig
#!/bin/sh
curl -sL 'http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.6/tmux-1.6.tar.gz' | 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