Skip to content

Instantly share code, notes, and snippets.

@byronmansfield
Forked from Fi5t/install_tmux_osx_no_brew
Created March 28, 2017 02:18
Show Gist options
  • Save byronmansfield/8658da730071273ae29e27d81178cdbe to your computer and use it in GitHub Desktop.
Save byronmansfield/8658da730071273ae29e27d81178cdbe 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/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 tmux-2.3.tar.gz
tar xzf libevent-2.0.22-stable.tar.gz
# Compile libevent
cd libevent-2.0.22-stable
./configure --prefix=/opt
make
sudo make install
# Compile tmux
cd ../tmux-2.3
LDFLAGS="-L/opt/lib" CPPFLAGS="-I/opt/include" LIBS="-lresolv" ./configure --prefix=/opt
make
sudo make install
# Link it
ln -s /opt/bin/tmux /usr/local/bin/tmux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment