Skip to content

Instantly share code, notes, and snippets.

@mshuffett
Created September 8, 2017 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mshuffett/846412d0b1824b1f92925b9cd0d5e396 to your computer and use it in GitHub Desktop.
Save mshuffett/846412d0b1824b1f92925b9cd0d5e396 to your computer and use it in GitHub Desktop.
Install tmux without root
#!/usr/bin/env bash
cd /tmp
# libevent
wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
tar xvf libevent-2.1.8-stable.tar.gz
cd libevent-2.1.8-stable
./configure --prefix=$HOME
make -j 8
make install
# tmux
wget https://github.com/tmux/tmux/releases/download/2.5/tmux-2.5.tar.gz
tar xvf tmux-2.5.tar.gz
cd tmux-2.5
./configure --prefix=$HOME CFLAGS="-I$HOME/include" LDFLAGS="-L$HOME/lib"
make -j 8
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment