Created
May 2, 2012 05:22
-
-
Save solar/2574068 to your computer and use it in GitHub Desktop.
Install libevent and tmux on CentOS/RH 6.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl -sL 'https://github.com/downloads/libevent/libevent/libevent-2.0.20-stable.tar.gz' | tar zx | |
cd libevent-2.0.20-stable/ | |
./configure --prefix=/usr/local/libevent/2.0.20-stable | |
make | |
sudo make install | |
sudo alternatives --install /usr/local/lib64/libevent libevent /usr/local/libevent/2.0.20-stable/lib 20018 \ | |
--slave /usr/local/include/libevent libevent-include /usr/local/libevent/2.0.20-stable/include \ | |
--slave /usr/local/bin/event_rpcgen.py event_rpcgen /usr/local/libevent/2.0.20-stable/bin/event_rpcgen.py | |
sudo su -c 'echo "/usr/local/lib64/libevent" > /etc/ld.so.conf.d/libevent.conf' | |
sudo ldconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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