Skip to content

Instantly share code, notes, and snippets.

@valentt
Forked from sturadnidge/tmux-1.8-on-CentOS-6.x.txt
Last active December 29, 2015 12:01
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save valentt/7612258 to your computer and use it in GitHub Desktop.
Save valentt/7612258 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://sourceforge.net/projects/tmux/files/latest/download?source=files
#
# don't compile tools as root, just don't do it.
# install deps
yum install gcc kernel-devel make ncurses-devel
# let's create user "mary" and assign a user password
useradd mary -m
passwd mary
# now login as mary
su - mary
# download and decompress packages
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
wget http://sourceforge.net/projects/tmux/files/latest/download?source=files
tar xvzf libevent-2.0.21-stable.tar.gz
tar xvzf tmux-1.8.tar.gz
# cd to libevent2 directory and compile it
cd libevent*
./configure --prefix=/usr/local
make
# exit out of user "mary" and install libevent2 as root
exit
cd /home/mary/libevent*
make install
# return as mary and continue with installing
su - mary
# cd to tmux direcotry
cd tmux*
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local
make
# and now finish the install as root
cd /home/mary/tmux*
make install
# return as root and cleanup
exit
userdel mary -r
@bengadbois
Copy link

Awesome thank you, works great!

@willho77
Copy link

Awesome, thanks!

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