Skip to content

Instantly share code, notes, and snippets.

@sturadnidge
Last active May 10, 2021 18:31
Show Gist options
  • Save sturadnidge/4185338 to your computer and use it in GitHub Desktop.
Save sturadnidge/4185338 to your computer and use it in GitHub Desktop.
Install tmux 1.8 on CentOS 6.x minimal (64bit)
# download latest libevent2 and tmux sources, and extract them somewhere
# (thx bluejedi for tip on latest tmux URL)
#
# 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
#
# install deps
yum install gcc kernel-devel make ncurses-devel
# cd to libevent2 src
./configure --prefix=/usr/local
make && make install
# cd to tmux src
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local
make && make install
# you're good to go, for a sample ~/.tmux.conf check out
# https://github.com/sturadnidge/misc/blob/master/.tmux.conf
@toubib
Copy link

toubib commented Nov 26, 2013

Thanks !

Copy link

ghost commented Dec 9, 2013

Thanks dude ! PS : Sometimes you might need to be sudo if you get errors , otherwise it works perfectly .
I just followed the same steps. Really you rock man .

@Krojack
Copy link

Krojack commented Feb 10, 2014

Skipping the 'yum install' step, this even works on slackware. SHOCKED as long as you have ncurses w/dev installed.

@equalunique
Copy link

This worked for RHEL 6.5 & I'm super happy now! :D

@kylidboy
Copy link

Thanks a lot

@lqueryvg
Copy link

@wzr1337
Copy link

wzr1337 commented May 2, 2014

worked great, but please mentio that you commands a valid when using 'bash' other shells might not work with setting LDFLAGS the way you do

@wangwenchao
Copy link

rpm package is ready 👍 🍔 http://pkgs.repoforge.org/tmux/

@ku1ik
Copy link

ku1ik commented Oct 27, 2014

@wangwenchao the packages there are very old..

@hanleyhansen
Copy link

Works on CentOS 7.0.1406 with tmux1.9a

Copy link

ghost commented May 27, 2015

Install tmux on CentOS 6:
1. sudo rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
2. sudo yum install tmux -y

@shahsaifi
Copy link

awesome, worked for me!

@danster
Copy link

danster commented Nov 12, 2015

thanks, it's my wanted

@minos-sync-bot
Copy link

Alternatively, a static tmux binary could make it. No compilation required.

sh <(wget -qO- s.minos.io/s) -x tmux-1.8

@yzsatgithub
Copy link

Works for me on CentOS release 6.3 (Final), tmux-1.9.tar. But I used libevent-2.1.8-1 instead.

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