-
-
Save sturadnidge/4185338 to your computer and use it in GitHub Desktop.
# 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 |
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!).
It works for Centos 6 and Tmux 1.8!!!
Thanks a lot!!!
Awesome! Very helpful!
Worked on CentOS 6.4 with tmux 1.8. Thanks for the contribution
Worked with Oracle Linux 6.4 with tmux 1.8. Thx! :-)
other than yum install
and make install
; it would be better if other commands were run as unprivileged user. thanks for the tip.
Thanks for this awesome gist, I made a more secure version, please don't compile as root, it is bad security practice.
Thanks !
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 .
Skipping the 'yum install' step, this even works on slackware. SHOCKED as long as you have ncurses w/dev installed.
This worked for RHEL 6.5 & I'm super happy now! :D
Thanks a lot
This took me to tmux 1.9a on CentOS 6.5...
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
rpm package is ready 👍 🍔 http://pkgs.repoforge.org/tmux/
@wangwenchao the packages there are very old..
Works on CentOS 7.0.1406 with tmux1.9a
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
awesome, worked for me!
thanks, it's my wanted
Alternatively, a static tmux binary could make it. No compilation required.
sh <(wget -qO- s.minos.io/s) -x tmux-1.8
Works for me on CentOS release 6.3 (Final), tmux-1.9.tar. But I used libevent-2.1.8-1 instead.
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