Skip to content

Instantly share code, notes, and snippets.

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

This comment has been minimized.

Copy link

bluejedi commented Jun 30, 2013

hello thanks for your gist, btw you can get the latest tmux from this url http://sourceforge.net/projects/tmux/files/latest/download?source=files

@benpjohnson

This comment has been minimized.

Copy link

benpjohnson commented Jul 19, 2013

Nice one. This also works on centos5.9 with tmux1.8 If you are still getting errors using this method make sure you haven't got the centos libevent-devel package installed (like I did!).

@neodevelop

This comment has been minimized.

Copy link

neodevelop commented Jul 31, 2013

It works for Centos 6 and Tmux 1.8!!!
Thanks a lot!!!

@bangonkali

This comment has been minimized.

Copy link

bangonkali commented Aug 10, 2013

Awesome! Very helpful!

@ThaWeatherman

This comment has been minimized.

Copy link

ThaWeatherman commented Aug 26, 2013

Worked on CentOS 6.4 with tmux 1.8. Thanks for the contribution

@mmonge

This comment has been minimized.

Copy link

mmonge commented Sep 4, 2013

Worked with Oracle Linux 6.4 with tmux 1.8. Thx! :-)

@dnozay

This comment has been minimized.

Copy link

dnozay commented Oct 21, 2013

other than yum install and make install; it would be better if other commands were run as unprivileged user. thanks for the tip.

@valentt

This comment has been minimized.

Copy link

valentt commented Nov 23, 2013

Thanks for this awesome gist, I made a more secure version, please don't compile as root, it is bad security practice.

https://gist.github.com/valentt/7612258

@toubib

This comment has been minimized.

Copy link

toubib commented Nov 26, 2013

Thanks !

@varmanishant

This comment has been minimized.

Copy link

varmanishant 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

This comment has been minimized.

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

This comment has been minimized.

Copy link

equalunique commented Feb 19, 2014

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

@kylidboy

This comment has been minimized.

Copy link

kylidboy commented Feb 24, 2014

Thanks a lot

@lqueryvg

This comment has been minimized.

@wzr1337

This comment has been minimized.

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

This comment has been minimized.

Copy link

WangWenchao commented Sep 12, 2014

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

@sickill

This comment has been minimized.

Copy link

sickill commented Oct 27, 2014

@WangWenchao the packages there are very old..

@hanleyhansen

This comment has been minimized.

Copy link

hanleyhansen commented Mar 13, 2015

Works on CentOS 7.0.1406 with tmux1.9a

@ghost

This comment has been minimized.

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

This comment has been minimized.

Copy link

shahsaifi commented Aug 29, 2015

awesome, worked for me!

@danster

This comment has been minimized.

Copy link

danster commented Nov 12, 2015

thanks, it's my wanted

@minos-sync-bot

This comment has been minimized.

Copy link

minos-sync-bot commented Jan 11, 2016

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

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

@yzsatgithub

This comment has been minimized.

Copy link

yzsatgithub commented Jun 20, 2019

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