Skip to content

Instantly share code, notes, and snippets.

@gzxultra
Created February 19, 2019 15:52
Show Gist options
  • Save gzxultra/14d20aa30364110f6a324b61be86f38f to your computer and use it in GitHub Desktop.
Save gzxultra/14d20aa30364110f6a324b61be86f38f to your computer and use it in GitHub Desktop.
Install latest version of tmux
cd ~
wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
tar xvzf libevent-2.1.8-stable.tar.gz
cd libevent-2.1.8-stable
./configure --prefix=$HOME/bin --disable-shared
make
make install
cd ~
wget https://invisible-mirror.net/archives/ncurses/ncurses-6.1.tar.gz
tar xvzf ncurses-6.1.tar.gz
cd ncurses-6.1
./configure --prefix=$HOME/bin
make
make install
cd ~
wget https://github.com/tmux/tmux/releases/download/2.8/tmux-2.8.tar.gz
tar xvzf tmux-2.8.tar.gz
cd tmux-2.8
./configure CFLAGS="-I$HOME/bin/include -I$HOME/bin/include/ncurses" LDFLAGS="-L$HOME/bin/lib -L$HOME/bin/include/ncurses -L$HOME/bin/include"
CPPFLAGS="-I$HOME/bin/include -I$HOME/bin/include/ncurses" LDFLAGS="-static -L$HOME/bin/include -L$HOME/bin/include/ncurses -L$HOME/bin/lib" make
cp tmux $HOME/bin/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment