Skip to content

Instantly share code, notes, and snippets.

@xtremebeing
Forked from tomasbasham/install_tmux_osx_no_brew
Last active February 4, 2026 17:42
Show Gist options
  • Select an option

  • Save xtremebeing/a87148068bc7168d414b9c4ccf231fef to your computer and use it in GitHub Desktop.

Select an option

Save xtremebeing/a87148068bc7168d414b9c4ccf231fef to your computer and use it in GitHub Desktop.
Install tmux on OSX WITHOUT brew
# Create a directory
mkdir ~/tmux-install
cd ~/tmux-install
# Get the files
curl -OL https://github.com/openssl/openssl/releases/download/openssl-3.5.5/openssl-3.5.5.tar.gz
curl -OL https://github.com/tmux/tmux/releases/download/3.6a/tmux-3.6a.tar.gz
curl -OL https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
# Extract them
tar xzf openssl-3.5.5.tar.gz
tar xzf tmux-3.6a.tar.gz
tar xzf libevent-2.1.12-stable.tar.gz
# Compile openssl
cd openssl-3.5.5
./Configure darwin64-x86_64-cc --prefix=/usr/local
make CFLAGS='-I/usr/local/ssl/include'
make test
sudo make install
# Compile libevent
cd ../libevent-2.1.12-stable
./configure
make
sudo make install
# Compile tmux
cd ../tmux-3.6a
LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" LIBS="-lresolv" ./configure --prefix=/usr/local --disable-utf8proc
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment