Skip to content

Instantly share code, notes, and snippets.

@cryptowen
Last active August 29, 2015 14:19
Show Gist options
  • Save cryptowen/b1e4e57f629ca0a37931 to your computer and use it in GitHub Desktop.
Save cryptowen/b1e4e57f629ca0a37931 to your computer and use it in GitHub Desktop.
centos手动安装tmux脚本
#!/bin/sh
# centos tmux install script. To install tmux version 2.0 instead of 1.6 installed by yum install command.
sudo yum install gcc make automake pkgconfig wget git-core ncurses-devel -y
mkdir ~/src
cd ~/src
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -zxvf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure
make
sudo make install
sudo ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib64
cd ~/src
wget https://github.com/ThomasAdam/tmux/archive/2.0.tar.gz
tar -zxvf 2.0.tar.gz
cd tmux-2.0
sh autogen.sh
./configure && make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment