Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bruno Sutic
committed
Aug 4, 2015
1 parent
e1b299b
commit 1da4b13
Showing
4 changed files
with
25 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
# tmux installation instructions from here | ||
# libevent2 installation instructions from here | ||
# https://gist.github.com/rschuman/6168833 | ||
|
||
sudo su - | ||
|
||
yum -y install gcc kernel-devel make ncurses-devel | ||
yum -y install gcc kernel-devel make automake autoconf ncurses-devel | ||
yum -y install git-core expect vim ruby ruby-devel ruby-irb | ||
|
||
# download tmux and libevent | ||
mkdir ~/downloads && cd ~/downloads | ||
# install libevent2 from source | ||
curl http://sourceforge.net/projects/levent/files/latest/download?source=files -L -o libevent2.tar.gz -w 'Last URL was: %{url_effective}' | ||
curl http://sourceforge.net/projects/tmux/files/latest/download?source=files -L -o tmux.tar.gz -w 'Last URL was: %{url_effective}' | ||
|
||
# compile libevent | ||
cd ~/downloads | ||
tar zxvf libevent2.tar.gz | ||
cd libevent-*-stable | ||
cd ./libevent-* | ||
./configure --prefix=/usr/local | ||
make | ||
make install | ||
|
||
# compile tmux | ||
cd ~/downloads | ||
tar zxvf tmux.tar.gz | ||
cd tmux-* | ||
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local | ||
make | ||
make install | ||
git clone https://github.com/tmux/tmux.git ~/tmux_source | ||
cd ~/tmux_source | ||
git checkout 2.0 | ||
sh autogen.sh | ||
./configure && make && sudo make install |
This file contains 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