To build tmux from source, libevent must be installed as well. The tmux configure/build will link against libevent in /usr/local
, but will not see it at runtime. Build tmux as a static binary to work around it.
unbind C-b set -g prefix C-a
tmux attach -d
Also displays which ones are attached:
tmux list-sessions
tmux build can't find libevent even with setting prefix:
./configure --prefix=/opt/local CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib
Static build
You can use this script to simplify downloading and installing a tmux build.