Skip to content

Instantly share code, notes, and snippets.

@tallship
Forked from sturadnidge/tmux-1.8-on-CentOS-6.x.txt
Created March 8, 2013 17:47
Show Gist options
  • Save tallship/5118333 to your computer and use it in GitHub Desktop.
Save tallship/5118333 to your computer and use it in GitHub Desktop.
# 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...
@tallship
Copy link
Author

tallship commented Mar 8, 2013

!/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

@tallship
Copy link
Author

tallship commented Mar 8, 2013

!/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