Skip to content

Instantly share code, notes, and snippets.

@koirand
Created February 4, 2018 16:25
Show Gist options
  • Save koirand/606adbcbd90d54f10829628ce998f725 to your computer and use it in GitHub Desktop.
Save koirand/606adbcbd90d54f10829628ce998f725 to your computer and use it in GitHub Desktop.
Install tmux ver2.5 to Ubuntu 16.04
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