Last active
July 17, 2023 14:45
-
-
Save shrayasr/8714601 to your computer and use it in GitHub Desktop.
[OBSOLETE] 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
Check https://gist.github.com/devisions/004999452e95de9058de2edc1656ca04 for a more up to date version |
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 http://downloads.sourceforge.net/tmux/tmux-1.5.tar.gz | |
curl -OL http://downloads.sourceforge.net/project/levent/libevent/libevent-2.0/libevent-2.0.16-stable.tar.gz | |
# Extract them | |
tar xzf tmux-1.5.tar.gz | |
tar xzf libevent-2.0.16-stable.tar.gz | |
# Compile libevent | |
cd libevent-2.0.16-stable | |
./configure --prefix=/opt | |
make | |
sudo make install | |
# Compile tmux | |
cd ../tmux-1.5 | |
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/bin/tmux |
@mkatychev
Sure, thanks, here it is.
Cheers @DEVisions, I will update the gist to point to yours :)
@shrayasr Sure! Glad to help. :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@DEVisions
you should make your own gist, this is the far superior script.