Skip to content

Instantly share code, notes, and snippets.

@agmm
Forked from tomasbasham/install_tmux_osx_no_brew
Created July 23, 2020 21:54
Show Gist options
  • Save agmm/4e1154fec6769d900240d6617d43026f to your computer and use it in GitHub Desktop.
Save agmm/4e1154fec6769d900240d6617d43026f 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://www.openssl.org/source/openssl-1.0.2l.tar.gz
curl -OL https://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz
curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
# Extract them
tar xzf openssl-1.0.2l.tar.gz
tar xzf tmux-2.3.tar.gz
tar xzf libevent-2.0.22-stable.tar.gz
# Compile openssl
cd openssl-1.0.2l
./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.0.22-stable
./configure
make
sudo make install
# Compile tmux
cd ../tmux-2.3
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