Last active
August 16, 2019 13:02
-
-
Save ekiara/11023782 to your computer and use it in GitHub Desktop.
HOW TO: Install tmux on Centos release 6.5
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
# Install tmux on Centos release 6.5 | |
# http://superuser.com/questions/738829/attempting-to-install-tmux-on-centos-6-4-or-centos-6-5-fails-with-error-evbuff | |
# | |
# READ THIS FIRST!!! | |
# MAKE SURE YOU HAVE BUILD TOOLS/COMPILERS TO BUILD STUFF FROM SOURCES | |
# yum groupinstall "Development Tools" | |
# CD TO TEMPORARY DIRECTORY | |
cd /tmp/sources | |
# INSTALL NCURSES DEVEL | |
yum -y install ncurses-devel | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
#### wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
tar -xvzf libevent-2.0.21-stable.tar.gz | |
cd libevent-2.0.21-stable | |
./configure | |
make | |
make install | |
# DOWNLOAD SOURCES FOR TMUX AND MAKE AND INSTALL | |
#### wget http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz | |
curl -OL http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz | |
tar -xvzf tmux-1.9a.tar.gz | |
cd tmux-1.9a | |
./configure | |
make | |
make install | |
# SWITCH BACK TO REGULAR USER AND EDIT YOUR BASHRC (OR ZSH CONFIG) | |
echo export LD_LIBRARY_PATH=/usr/local/lib >> ~/.bash_profile | |
. ~/.bash_profile | |
#### source ~/.bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for help.
Also a comment:
I encounter an error:
tmux: error while loading shared libraries: libevent-2.0.so.5
So I do this
ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5
in my 64 bit system.You may do
ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5
in 32 bit system if you have this error too.