Created
March 8, 2013 20:00
-
-
Save tallship/5119391 to your computer and use it in GitHub Desktop.
Install tmux on CentOS 6 this is a quick script for Installing the latest [libevent and] tmux on CentOS 6.3 Before anything, do a "yum update" It will install deps, download the latest sources (a/o 20130308), then compile and install everything. Deps: gcc kernel-devel make ncurses-devel (We're installing the latest libevent by hand). Next, we d/…
This file contains hidden or 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 | |
# 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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Chopper approved: http://www.youtube.com/watch?feature=endscreen&NR=1&v=7NYous_vZtY