Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install tmux 2.8 on centos 7
# Install tmux 2.8 on Centos
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -LOk 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 -LOk 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
@ajpircio

This comment has been minimized.

Copy link

ajpircio commented Jul 26, 2017

Thank you!

@m3ngyang

This comment has been minimized.

Copy link

m3ngyang commented Jul 27, 2017

good~

@mrsndmn

This comment has been minimized.

Copy link

mrsndmn commented Oct 3, 2017

I also need this package
yum install automake.noarch

And if you had bad ./configure execution may be you need make clean

@kishaningithub

This comment has been minimized.

Copy link

kishaningithub commented Oct 15, 2017

Thanks it worked!!

@zhiquan-li

This comment has been minimized.

Copy link

zhiquan-li commented Nov 13, 2017

Thanks!

The dependency of libevent-2.0.x also can be resolved by:
yum install libevent2-devel

@psramkumar

This comment has been minimized.

Copy link

psramkumar commented Aug 23, 2018

change CURL to wget it works

@tier61rus

This comment has been minimized.

Copy link

tier61rus commented Jan 16, 2019

works like magic on C6!
Thx a lot!

@robyurkowski

This comment has been minimized.

Copy link

robyurkowski commented Feb 12, 2019

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.

@ichandan16

This comment has been minimized.

Copy link

ichandan16 commented Mar 28, 2019

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 👍

@j3j3k

This comment has been minimized.

Copy link

j3j3k commented May 28, 2019

Tmux 2.8 -> 2.9a, libevent 2.1.8 -> 2.1.10
https://gist.github.com/j3j3k/2378f8e7bca7bcda7ffab16b6b97a328

@MikeKlebolt

This comment has been minimized.

Copy link

MikeKlebolt commented Jul 23, 2019

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
@mithilarun

This comment has been minimized.

Copy link

mithilarun commented Aug 19, 2019

Thanks @MikeKlebolt! That worked like a charm.

@wongtou

This comment has been minimized.

Copy link

wongtou commented Dec 16, 2019

Thank you!
It is very convenient!

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.