LoginSignup
2
3

More than 5 years have passed since last update.

tmux 2.4 をローカルインストールする

Last updated at Posted at 2017-04-26

tmxu 2.4をCentOS6上でローカルインストールする方法を記す。

まずは、ホームディレクトリ配下にlocalというディレクトリを作成する。

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

libeventをインストールする。

cd libevent-2.1.8-stable
./configure  --prefix=$HOME/local/
make
make install

ncursesをインストールする。

cd ncurses-6.0
./configure  --prefix=$HOME/local/
make
make install

tmuxをインストールする。各種環境変数を忘れるとtmuxが起動してこないため気をつけるように。

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

以上。

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3