Skip to content

Instantly share code, notes, and snippets.

@ekiara
Last active August 16, 2019 13:02
Show Gist options
  • Save ekiara/11023782 to your computer and use it in GitHub Desktop.
Save ekiara/11023782 to your computer and use it in GitHub Desktop.
HOW TO: Install tmux on Centos release 6.5
# 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
@damrkul
Copy link

damrkul commented Apr 23, 2015

Thanks this is great.

@nschley
Copy link

nschley commented May 8, 2015

Ditto. Big help.
If you want to touch it up, the only improvement I could suggest is to update the versions for the links.

  • tmux is presently at 2.0
  • libevent is stable at 2.0.22 (2.1.5 is in beta)
    Thanks. This was sweet!

@LKI
Copy link

LKI commented Sep 8, 2015

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.

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