Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

commented Apr 23, 2015

Thanks this is great.

@nschley

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

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
You can’t perform that action at this time.