Skip to content

Instantly share code, notes, and snippets.

@kentarosasaki
Last active August 8, 2017 01:16
Show Gist options
  • Save kentarosasaki/9604158709265b23df4d72d9687cf3e0 to your computer and use it in GitHub Desktop.
Save kentarosasaki/9604158709265b23df4d72d9687cf3e0 to your computer and use it in GitHub Desktop.
tmux 2.4 をローカルインストールする ref: http://qiita.com/kentarosasaki/items/f6769109a251fcc96208
mkdir $HOME/local
wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
wget http://ftp.gnu.org/gnu/ncurses/ncurses-6.0.tar.gz
wget https://github.com/tmux/tmux/releases/download/2.4/tmux-2.4.tar.gz
tar zxvf ncurses-6.0.tar.gz
tar zxvf libevent-2.1.8-stable.tar.gz
tar zxvf tmux-2.4.tar.gz
cd libevent-2.1.8-stable
./configure --prefix=$HOME/local/
make
make install
cd ncurses-6.0
./configure --prefix=$HOME/local/
make
make install
cd tmux-2.4
export DIR="$HOME/local"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DIR/lib
./configure --prefix=$DIR CFLAGS="-I$DIR/include" LDFLAGS="-L$DIR/lib"
make
make install
vi ~/.bash_profile
export DIR="$HOME/local"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DIR/lib
export PATH=$HOME/local/bin:$PATH
. ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment