Skip to content

Instantly share code, notes, and snippets.

@sfate
Forked from ryin/tmux_local_install.sh
Last active November 13, 2022 22:54
Show Gist options
  • Save sfate/4510955 to your computer and use it in GitHub Desktop.
Save sfate/4510955 to your computer and use it in GitHub Desktop.
# Script for installing tmux 1.7
#
# Installation:
# $ curl -Lo- http://git.io/tmux-1.7_install.sh | bash
# Find me here:
# https://gist.github.com/4510955
# exit on error
set -e
# create our directories
mkdir -p $HOME/tmux_tmp
cd $HOME/tmux_tmp
# download source files for tmux, libevent, and ncurses
wget http://downloads.sourceforge.net/tmux/tmux-1.7.tar.gz
wget https://github.com/downloads/libevent/libevent/libevent-2.0.19-stable.tar.gz
wget ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz
# extract files, configure, and compile
tar xvzf libevent-2.0.19-stable.tar.gz
tar xvzf ncurses-5.9.tar.gz
tar xvzf tmux-1.7.tar.gz
############
# libevent #
############
cd $HOME/tmux_tmp/libevent-2.0.19-stable
./configure
make
sudo make install
sudo ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5
############
# ncurses #
############
cd $HOME/tmux_tmp/ncurses-5.9
./configure
make
sudo make install
############
# tmux #
############
cd $HOME/tmux_tmp/tmux-1.7
./configure
make
sudo make install
# cleanup
cd $HOME && kill -9 $(pgrep tmux)
rm -rf $HOME/tmux_tmp
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment