Skip to content

Instantly share code, notes, and snippets.

@zh-f
Forked from relaxdiego/install-tmux
Last active July 21, 2022 17:23
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zh-f/d1375e398fd4e624f421cc8e1741cf6d to your computer and use it in GitHub Desktop.
Save zh-f/d1375e398fd4e624f421cc8e1741cf6d to your computer and use it in GitHub Desktop.
Install tmux 2.6 on CentOS 7.1
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -xvzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=/usr/local
make
sudo make install
# DOWNLOAD SOURCES FOR TMUX AND MAKE AND INSTALL
wget https://github.com/tmux/tmux/releases/download/2.6/tmux-2.6.tar.gz
tar -xvzf tmux-2.6.tar.gz
cd tmux-2.6
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local
make
sudo make install
# pkill tmux
# close your terminal window (flushes cached tmux executable)
# open new shell and check tmux version
tmux -V
@pennz
Copy link

pennz commented Mar 18, 2020

Thanks.
You can do sudo yum install ncurses-devel -y if you get configure: error: "curses not found" when you build tmux.

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