Skip to content

Instantly share code, notes, and snippets.

@tallship
Created March 8, 2013 20:00
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tallship/5119391 to your computer and use it in GitHub Desktop.
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/…
#!/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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment