-
-
Save renxida/78fdc5c9e1481f8d80391afccce11dda to your computer and use it in GitHub Desktop.
Install tmux without root
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
#!/bin/bash | |
set -e | |
TMUX_VERSION=2.7 | |
LIBEVENT_VERSION=2.0.22-stable | |
NCURSES_VERSION=6.0 | |
mkdir -p $HOME/.local | |
mkdir -p $HOME/src | |
cd $HOME/src | |
wget -N https://github.com/libevent/libevent/releases/download/release-$LIBEVENT_VERSION/libevent-$LIBEVENT_VERSION.tar.gz | |
tar -xzf libevent-$LIBEVENT_VERSION.tar.gz | |
cd libevent-$LIBEVENT_VERSION | |
./configure --prefix=$HOME/.local | |
make install | |
cd $HOME/src | |
wget -N https://ftp.gnu.org/pub/gnu/ncurses/ncurses-$NCURSES_VERSION.tar.gz | |
tar -xzf ncurses-$NCURSES_VERSION.tar.gz | |
cd ncurses-$NCURSES_VERSION | |
./configure CPPFLAGS="-P" --prefix=$HOME/.local | |
make install | |
cd $HOME/src | |
wget -N https://github.com/tmux/tmux/releases/download/$TMUX_VERSION/tmux-$TMUX_VERSION.tar.gz | |
tar -xzf tmux-$TMUX_VERSION.tar.gz | |
cd tmux-$TMUX_VERSION | |
CFLAGS="-I$HOME/.local/include" LDFLAGS="-static -L$HOME/.local/lib -L$HOME/.local/lib64" ./configure --prefix=$HOME/.local | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment