-
-
Save pokev25/4b9516d32f4021d945a140df09bf1fde to your computer and use it in GitHub Desktop.
# Install tmux 2.8 on Centos | |
# install deps | |
yum install gcc kernel-devel make ncurses-devel | |
# cd src | |
cd /usr/local/src | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
curl -LO https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz | |
tar -xf libevent-2.1.8-stable.tar.gz | |
cd libevent-2.1.8-stable | |
./configure --prefix=/usr/local | |
make | |
make install | |
# DOWNLOAD SOURCES FOR TMUX AND MAKE AND INSTALL | |
curl -LO https://github.com/tmux/tmux/releases/download/2.8/tmux-2.8.tar.gz | |
tar -xf tmux-2.8.tar.gz | |
cd tmux-2.8 | |
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local | |
make | |
make install | |
# pkill tmux | |
# close your terminal window (flushes cached tmux executable) | |
# open new shell and check tmux version | |
tmux -V |
good~
I also need this package
yum install automake.noarch
And if you had bad ./configure execution may be you need make clean
Thanks it worked!!
Thanks!
The dependency of libevent-2.0.x also can be resolved by:
yum install libevent2-devel
change CURL to wget it works
works like magic on C6!
Thx a lot!
In case you're a dummy like me, ./configure
also has to be run with root privs, not just the yum / make commands. And make sure that /usr/local/bin
is in your path.
In case you're a dummy like me,
./configure
also has to be run with root privs, not just the yum / make commands. And make sure that/usr/local/bin
is in your path.
You're not alone 👍
Tmux 2.8 -> 2.9a, libevent 2.1.8 -> 2.1.10
https://gist.github.com/j3j3k/2378f8e7bca7bcda7ffab16b6b97a328
This can all be replaced by two steps:
yum -y install https://centos7.iuscommunity.org/ius-release.rpm
yum install -y tmux2u
➜ ~ tmux -V
tmux 2.9a
Thanks @MikeKlebolt! That worked like a charm.
Thank you!
It is very convenient!
Thank you!
curl -k is bad
Thanks! Very useful!
Great!
Thank you!
Thank you!
For anyone looking for the
This can all be replaced by two steps:
yum -y install https://centos7.iuscommunity.org/ius-release.rpm yum install -y tmux2u
➜ ~ tmux -V tmux 2.9a
The repository URL has changed. It is now
yum install https://repo.ius.io/ius-release-el7.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y tmux2u
Taken from https://ius.io/setup
Install latest tmux(3.x) on centos 7:
yum install http://galaxy4.net/repo/galaxy4-release-7-current.noarch.rpm
yum install tmux
tmux -V
tmux 3.3
the easiest way probably directly downloaded the tmux 3,3 package from http://galaxy4.net/repo/RHEL/7/x86_64/tmux-3.3-1.el7.x86_64.rpm use wget. and then use rpm -ivh tmux
to install it. no yum involved
yum install tmux
Thank you!
Install latest tmux(3.x) on centos 7:
yum install http://galaxy4.net/repo/galaxy4-release-7-current.noarch.rpm yum install tmux tmux -V tmux 3.3
problem solved! thx
Thank you!