Created
February 4, 2018 16:25
-
-
Save koirand/606adbcbd90d54f10829628ce998f725 to your computer and use it in GitHub Desktop.
Install tmux ver2.5 to Ubuntu 16.04
This file contains 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 apt update | |
sudo apt install -y build-essential automake libevent-dev ncurses-dev | |
mkdir -p $HOME/src | |
mkdir -p $HOME/bin | |
cd $HOME/src && git clone https://github.com/tmux/tmux.git | |
cd $HOME/src/tmux && git checkout 2.5 | |
# refer to https://gist.github.com/z80oolong/e65baf0d590f62fab8f4f7c358cbcc34 | |
wget https://gist.githubusercontent.com/z80oolong/e65baf0d590f62fab8f4f7c358cbcc34/raw/f591fcac1ed9827af7a284a9b9bc006317015448/tmux-2.5-fix.diff | |
patch -p1 < ./tmux-2.5-fix.diff | |
sh autogen.sh && ./configure && make | |
cp $HOME/src/tmux/tmux $HOME/bin/ | |
echo 'export PATH=$HOME/bin:$PATH' >> $HOME/.bashrc | |
source $HOME/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment