Skip to content

Instantly share code, notes, and snippets.

@PowerSchill-xx
Last active July 9, 2020 04:17
Show Gist options
  • Select an option

  • Save PowerSchill-xx/9490499 to your computer and use it in GitHub Desktop.

Select an option

Save PowerSchill-xx/9490499 to your computer and use it in GitHub Desktop.
Bash: Install TMUX
# 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