-
-
Save tallship/5118333 to your computer and use it in GitHub Desktop.
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
# download latest libevent2 and tmux sources, and extract them somewhere | |
# | |
# at the time of writing: | |
# https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
# http://downloads.sourceforge.net/tmux/tmux-1.7.tar.gz | |
# | |
# install deps | |
yum install gcc kernel-devel make ncurses-devel | |
# cd to libevent2 src | |
./configure --prefix=/usr/local | |
make && make install | |
# cd to tmux src | |
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local | |
make && make install | |
# you're good to go... |
!/bin/sh
yum -y install gcc kernel-devel make ncurses-devel
mkdir -p /usr/local/src/libevent
mkdir -p /usr/local/src/tmux
cd /usr/local/src/libevent
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar zxvf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=/usr/local
make && make install
cd /usr/local/src/tmux
wget http://downloads.sourceforge.net/tmux/tmux-1.7.tar.gz
tar zxvf tmux-1.7.tar.gz
cd tmux-1.7
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local
make && make install
echo "Chopper says... "
echo "Fuckin' Bang!"
exit 0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
!/bin/sh
install_tmux_centos6.sh
Make sure we have the deps
yum -y install gcc kernel-devel make ncurses-devel
Get libevent and tmux source, and put it all under /usr/local/src
and then untar it all, and config/compile/install them.
mkdir -p /usr/local/src/libevent
mkdir -p /usr/local/src/tmux
cd /usr/local/src/libevent
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar zxvf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=/usr/local
make && make install
cd /usr/local/src/tmux
wget http://downloads.sourceforge.net/tmux/tmux-1.7.tar.gz
tar zxvf tmux-1.7.tar.gz
cd tmux-1.7
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local
make && make install
Fuckin' Bang!
echo "Chopper says... "
echo "Fuckin' Bang!"
exit 0