Tmux: Install from source (poor documentation)

Created on 2 Oct 2016  路  4Comments  路  Source: tmux/tmux

Try to install from git source, doc is incomplete. So if you got any of the following errors

$ sh autogen.sh
autogen.sh: 15: autogen.sh: aclocal: not found      
aclocal failed
checking for event.h... no
configure: error: "libevent not found"
checking for curses.h... no
configure: error: "curses or ncurses not found"

Most helpful comment

Be sure to install the following:

apt-get install autogen automake libevent-dev libncurses5-dev

All 4 comments

Be sure to install the following:

apt-get install autogen automake libevent-dev libncurses5-dev

Or see what the travis.yml does.

What I did to build tmux from source in a local directory (with the path in $WORKSPACE). Note the parameters to ./configure at each step.

1) Install libevent

# Download & extract source (anywhere)
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
# Install
./configure --prefix=$WORKSPACE
make
make install

2) Install ncurses

# Download & extract source (anywhere)
wget https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.1.tar.gz
tar -xvf ncurses-6.1.tar.gz
cd ncurses-6.1
# Install
./configure --prefix=$WORKSPACE CFLAGS="-I$WORKSPACE/include" LDFLAGS="-L$WORKSPACE/lib"
make
make install

3) Install tmux

# Download & extract source (anywhere)
wget https://github.com/tmux/tmux/releases/download/2.8/tmux-2.8.tar.gz
tar -xvf tmux-2.8.tar.gz
cd tmux-2.8
# Install
./configure --prefix=$WORKSPACE CFLAGS="-I$WORKSPACE/include -I$WORKSPACE/include/ncurses" LDFLAGS="-L$WORKSPACE/lib"
make
make install

4) Add $WORKSPACE/lib to $LD_LIBRARY_PATH (and $WORKSPACE/bin to $PATH, if it's not already on there)

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$WORKSPACE/lib
export PATH=$PATH:$WORKSPACE/bin

5) Run tmux! 馃巿

tmux

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alfredopalhares picture alfredopalhares  路  4Comments

bk2204 picture bk2204  路  4Comments

wellle picture wellle  路  3Comments

Ovid picture Ovid  路  4Comments

alexpearce picture alexpearce  路  5Comments