Skip to content

Instantly share code, notes, and snippets.

@noah
Created May 20, 2010 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 noah/407748 to your computer and use it in GitHub Desktop.
Save noah/407748 to your computer and use it in GitHub Desktop.
# tmux for non-root user
wget 'http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.2/tmux-1.2.tar.gz?use_mirror=cdnetworks-us-1'
wget http://www.monkey.org/~provos/libevent-1.4.13-stable.tar.gz
tar zxvf libevent-1.4.13-stable.tar.gz
tar zxvf tmux-1.2.tar.gz
cd libevent-1.4.13-stable
./configure --prefix=~/opt/libevent-1.4.13-stable
make -j 5
make install
cd ../tmux-1.2
./configure
LDFLAGS=-L~/opt/libevent-1.4.13-stable/lib CFLAGS=-I~/opt/libevent-1.4.13-stable/include make
make install
vim GNUmakefile
(change install permissions)
make install PREFIX=~/opt/tmux-1.2
LD_LIBRARY_PATH=~/opt/libevent-1.4.13-stable/lib ./opt/tmux-1.2/bin/tmux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment