Created
April 6, 2017 00:07
-
-
Save dandye/6fc1621b183941d26ead0de24c6b474e to your computer and use it in GitHub Desktop.
Compile tmux 2.3 on CentOS 6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install gcc kernel-devel make ncurses-devel wget automake | |
curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
tar -xzvf libevent-2.0.21-stable.tar.gz | |
cd libevent-2.0.21-stable | |
./configure --prefix=/usr/local | |
make | |
sudo make install | |
wget https://github.com/tmux/tmux/archive/2.3.tar.gz | |
tar -xzvf 2.3.tar.gz | |
cd tmux-2.3/ | |
# generate `configure` | |
sh autogen.sh | |
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local | |
make | |
sudo make install | |
pkill tmux | |
# pkill tmux | |
# close your terminal window (flushes cached tmux executable) | |
# open new shell and check tmux version | |
tmux -V |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment