Last active
July 9, 2020 04:17
-
-
Save PowerSchill-xx/9490499 to your computer and use it in GitHub Desktop.
Bash: Install TMUX
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
| # Yum package installation | |
| ## Install development patches | |
| sudo yum install gcc kernel-devel make ncurses-devel -y | |
| mkdir -p ~/tmp/ | |
| ## Download sources | |
| wget -O ~/tmp/libevent.tar.gz 'https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz' | |
| wget -O ~/tmp/tmux.tar.gz 'http://sourceforge.net/projects/tmux/files/latest/download?source=files' | |
| cd ~/tmp/ | |
| mkdir libevent | |
| mkdir tmux | |
| ## Build libevent | |
| tar -zxvf libevent.tar.gz --strip-components=1 --directory=libevent | |
| cd libevent | |
| ./configure --prefix=/usr/local | |
| make | |
| sudo make install | |
| ## Build tmux | |
| cd ../ | |
| mkdir tmux | |
| tar -zxvf tmux.tar.gz --strip-components=1 --directory=tmux | |
| cd tmux | |
| LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local | |
| make | |
| sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment