Created
April 16, 2020 19:00
-
-
Save hdemers/119bcc84174277618a3d1c9b87b4c52c to your computer and use it in GitHub Desktop.
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
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