Skip to content

Instantly share code, notes, and snippets.

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 picasso250/3a6a7219c08bbe9518cb4181087d2c35 to your computer and use it in GitHub Desktop.
Save picasso250/3a6a7219c08bbe9518cb4181087d2c35 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.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
#!/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