Skip to content

Instantly share code, notes, and snippets.

@rw3iss
Forked from tomasbasham/install_tmux_osx_no_brew
Last active October 20, 2020 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rw3iss/8a350b1a13bdbdeb4e0170988a78de11 to your computer and use it in GitHub Desktop.
Save rw3iss/8a350b1a13bdbdeb4e0170988a78de11 to your computer and use it in GitHub Desktop.
Install tmux on OSX without homebrew
# Create a directory
mkdir ~/tmux-install
cd ~/tmux-install
# Get the files
curl -OL https://www.openssl.org/source/openssl-1.1.1g.tar.gz
curl -OL https://github.com/tmux/tmux/releases/download/3.1b/tmux-3.1b.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-1.1.1g.tar.gz
tar xzf tmux-3.1b.tar.gz
tar xzf libevent-2.1.12-stable.tar.gz
# Compile openssl
cd openssl-1.1.1g
./Configure darwin64-x86_64-cc --prefix=/usr/local --o
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.1b
LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" LIBS="-lresolv" ./configure --prefix=/usr/local
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment