LoginSignup
1
1

More than 5 years have passed since last update.

CentOS に最新版の tmux をソースからインストールする

Posted at

作業メモ。

検証環境

bento/centos-7.3
vagrant ユーザーで作業。
https://qiita.com/guttally/items/229e02ed2ffbe7c51ea4 に沿って git をインストールした状態。

手順

tmux の README を参考にする。

依存ライブラリのインストール

sudo yum install -y automake libevent-devel ncurses-devel

ソースの取得

/usr/local/src の所有者は作業ユーザー (vagrant) に変更してある。

$ cd /usr/local/src
$ git clone https://github.com/tmux/tmux
$ cd tmux
$ git tag
... 最新版のタグを確認
$ git checkout 2.6

ビルド・インストール

$ sh autogen.sh
$ ./configure --prefix=/usr/local
$ make -j4
$ sudo make install

$ which tmux
/usr/local/bin/tmux

$  tmux -V
tmux 2.6
1
1
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
1
1