Skip to content

Instantly share code, notes, and snippets.

@andybe
Last active January 26, 2026 11:12
Show Gist options
  • Select an option

  • Save andybe/a37f9e41858430a54eb25f75b27389e0 to your computer and use it in GitHub Desktop.

Select an option

Save andybe/a37f9e41858430a54eb25f75b27389e0 to your computer and use it in GitHub Desktop.
Tmux static build on Mac OSX with command-line tools only
curl -LO https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
tar xf libevent-2.1.12-stable.tar.gz
cd libevent-2.1.12-stable
./configure --enable-static --disable-shared --disable-openssl --prefix=/tmp/libevent
make install
cd ..
curl -LO https://github.com/tmux/tmux/releases/download/3.6a/tmux-3.6a.tar.gz
tar xf tmux-3.6a.tar.gz
cd tmux-3.6a
./configure LDFLAGS="-L/tmp/libevent/lib" CFLAGS="-I/tmp/libevent/include" --disable-utf8proc --prefix=/usr/local
make
sudo make install
cd ..
rm -rf /tmp/libevent
rm -rf tmux-3.6a libevent-2.1.12-stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment