-
-
Save efrenfuentes/8ff858f2cb9585553513 to your computer and use it in GitHub Desktop.
This file contains 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
# 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