Having trouble installing the latest stable version of tmux?
I know, official package for your OS/distro is outdated and you just want the newest version of tmux.
Well, this script should save you some time with that.
- gcc
- wget
- tmux - 1.9a (latest stable)
- libevent - 2.0.21 (latest stable)
- ncurses - 5.9 (latest stable)
First of all, you should give me super user permissions, because this will install tmux to /usr/local/lib
by default. Trust me, I'm a random guy from the interwebz.
Hit
curl -fsSL https://gist.github.com/shime/5706655/raw/install.sh | sudo bash -e
Trying to compile on a shared hosting in my $HOME but without success :P
libevent is compiled and in $HOME/local
CFLAGS="-I$HOME/local/include" LDFLAGS="-L$HOME/local/lib -L$HOME/local/include" LIBEVENT_CFLAGS="-I$HOME/local/include" LIBEVENT_LIBS="-L$HOME/local/lib" LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/local/lib" ./configure --prefix=$HOME/local
LDFLAGS="-static -L$HOME/local/lib -L$HOME/local/include -L$HOME/local/include" CPPFLAGS="-I$HOME/local/include" LIBEVENT_CFLAGS="-I$HOME/local/include" LIBEVENT_LIBS="-L$HOME/local/lib" make
I found https://gist.github.com/536325/91f1392f1ecf46bed893ce5dd882d6018e95e22b and
tried also setting LD_LIBRARY_PATH and LD_RUN_PATH
export LD_LIBRARY_PATH="$HOME/local/lib"
export LD_RUN_PATH="$HOME/local/lib"