Forked from shrayasr/OLD_OLD_OLD_install_tmux_osx_no_brew.html
Last active
July 24, 2019 07:33
-
-
Save Fi5t/3bd299ea0bedc0b08b99b29787f57660 to your computer and use it in GitHub Desktop.
Install tmux on OSX WITHOUT brew
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.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 |
LDFLAGS="-L/usr/local/opt/openssl/lib" CPPFLAGS="-I/usr/local/opt/openssl/include" ./configure --prefix=/opt
Making install in sample
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in test
/Library/Developer/CommandLineTools/usr/bin/make install-am
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
Hello ,
I am getting this while running ls command of tmux
$ tmux ls
error connecting to /private/tmp/tmux-1368511905/default (No such file or directory)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This works great, thanks!
I needed a sudo to create the symbolic link in the last part, and the openssl headers were missing on my system (got them from the source and copied to /usr/local/include, I'm running El Capitan).