Skip to content

Instantly share code, notes, and snippets.

@efrenfuentes
Forked from valentt/tmux-1.8-on-CentOS-6.x.txt
Last active March 13, 2018 12:48
Show Gist options
  • Save efrenfuentes/8ff858f2cb9585553513 to your computer and use it in GitHub Desktop.
Save efrenfuentes/8ff858f2cb9585553513 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment