Skip to content

Instantly share code, notes, and snippets.

@NDari
Created October 5, 2017 17:39
Show Gist options
  • Select an option

  • Save NDari/62cfd2277969be5e032d90ef84c5fe2c to your computer and use it in GitHub Desktop.

Select an option

Save NDari/62cfd2277969be5e032d90ef84c5fe2c to your computer and use it in GitHub Desktop.
#!/bin/bash
#exit on error
set -e
# create our directories
mkdir -p $HOME/local $HOME/src
############
# libevent #
############
cd $HOME/src
wget https://github.com/downloads/libevent/libevent/libevent-2.0.19-stable.tar.gz
tar xvzf libevent-2.0.19-stable.tar.gz
cd libevent-2.0.19-stable
./configure --prefix=$HOME/local --disable-shared
make
make install
############
# ncurses #
############
cd $HOME/src
wget https://github.com/mirror/ncurses/archive/v5.9.tar.gz
tar xvzf v5.9.tar.gz
cd ncurses-5.9
./configure --prefix=$HOME/local
make
make install
############
# tmux #
############
cd $HOME/src
wget -O tmux-2.2.tar.gz https://github.com/tmux/tmux/releases/download/2.2/tmux-2.2.tar.gz
tar xvzf tmux-2.2.tar.gz
cd tmux-2.2
./configure CFLAGS="-I$HOME/local/include -I$HOME/local/include/ncurses" LDFLAGS="-L$HOME/local/lib -L$HOME/local/include/ncurses -L$HOME/local/include"
CPPFLAGS="-I$HOME/local/include -I$HOME/local/include/ncurses" LDFLAGS="-static -L$HOME/local/include -L$HOME/local/include/ncurses -L$HOME/local/lib" make
cp tmux $HOME/local/bin
############
# zsh #
############
cd $HOME/src
wget https://github.com/zsh-users/zsh/archive/zsh-5.2.tar.gz
tar xvzf zsh-5.2.tar.gz
cd zsh-zsh-5.2
./Util/preconfig
./configure --prefix=$HOME/local/ --exec-prefix=$HOME/local/
make
make install.bin
make install.modules
make install.fns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment