-
-
Save sfate/4510955 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # 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