Created
September 7, 2017 14:44
-
-
Save charlieparkes/84e8a8e724158144a6e2f959178499b3 to your computer and use it in GitHub Desktop.
Install tmux on CentOS 6.9
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
# Sources: | |
# https://gist.github.com/xkniu/0b752143a5990cdb3379 | |
# https://gist.github.com/Root-shady/d48d5282651634f464af | |
# http://www.nigeldunn.com/2011/12/11/libevent-2-0-so-5-cannot-open-shared-object-file-no-such-file-or-directory/ | |
sudo yum remove tmux libevent libevent-devel libevent-headers | |
sudo yum install gcc kernel-devel make ncurses-devel | |
mkdir /tmp/tmux-setup | |
cd /tmp/tmux-setup/ && mkdir ./libenvent && cd ./libenvent | |
wget https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz | |
tar -zxvf libevent-2.0.22-stable.tar.gz | |
cd libevent-2.0.22-stable/ | |
./configure && make | |
sudo make install | |
cd /tmp/tmux-setup/ && mkdir ./tmux && cd ./tmux | |
wget https://github.com/tmux/tmux/releases/download/2.2/tmux-2.2.tar.gz | |
tar -zxvf tmux-2.2.tar.gz | |
cd tmux-2.2/ | |
./configure && make | |
sudo make install | |
ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5 | |
pkill tmux | |
tmux -V |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment