Forked from shrayasr/OLD_OLD_OLD_install_tmux_osx_no_brew.html
Last active
October 9, 2018 13:04
-
-
Save dom111/e137afdb19e0b301d893d98691baad76 to your computer and use it in GitHub Desktop.
Install tmux on OSX WITHOUT brew - updated to use github urls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a directory | |
mkdir ~/tmux-install | |
cd ~/tmux-install | |
# Get the files | |
curl -OL https://github.com/tmux/tmux/releases/download/2.7/tmux-2.7.tar.gz | |
curl -OL https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz | |
# Extract them | |
tar xzf tmux-2.7.tar.gz | |
tar xzf libevent-2.1.8-stable.tar.gz | |
# Compile libevent | |
cd libevent-2.1.8-stable | |
./configure --prefix=/opt | |
make | |
sudo make install | |
# Compile tmux | |
cd ../tmux-2.7 | |
LDFLAGS="-L/opt/lib" CPPFLAGS="-I/opt/include" LIBS="-lresolv" ./configure --prefix=/opt | |
make | |
sudo make install | |
# Link it | |
sudo ln -s /opt/bin/tmux /usr/bin/tmux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment