Skip to content

Instantly share code, notes, and snippets.

@hdemers
Created April 16, 2020 19:00
Show Gist options
  • Save hdemers/119bcc84174277618a3d1c9b87b4c52c to your computer and use it in GitHub Desktop.
Save hdemers/119bcc84174277618a3d1c9b87b4c52c to your computer and use it in GitHub Desktop.
cd $HOME
# Create the installation directory
export DIR=$HOME/.local
export SRC=$HOME/src
mkdir -p $DIR
mkdir -p $SRC
# Download libevent, ncurses and tmux
cd $SRC
wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
wget https://github.com/tmux/tmux/releases/download/3.0a/tmux-3.0a.tar.gz
wget https://invisible-mirror.net/archives/ncurses/ncurses-6.2.tar.gz
# Untar archives
tar xfz libevent-2.1.8-stable.tar.gz
tar xfz tmux-3.0a.tar.gz
tar xfz ncurses-6.2.tar.gz
# Compile and install libevent
cd $SRC/libevent-2.1.8-stable
./configure --prefix=$DIR --disable-shared
make -j install
# Compile and install ncurses
cd $SRC/ncurses-6.2
./configure --prefix=$DIR --disable-shared
make -j install
# Compile and install tmux
cd $SRC/tmux-3.0a
./configure --prefix=$DIR CFLAGS="-I$DIR/include -I$DIR/include/ncurses" LDFLAGS="-L$DIR/lib"
make -j install
echo 'export PATH=$PATH:$HOME/.local/bin' >> $HOME/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment