LoginSignup
15
15

More than 3 years have passed since last update.

CentOS7にtmux2.xを導入する。

Last updated at Posted at 2016-02-16

概要

以前、Linux(CentOS7)にtmuxを導入する。という記事を書いたのですが、
これを見つけた後輩に「1.8って古くないですか?(プスー)」って言われたので、2.xの入れ方を綴ります。 (^ω^#)

導入するもの

  • wget
  • gcc
  • libevent-devel
  • ncurses-devel
  • tmux (2.x)

手順

0. 下準備

先ず、

  • wget
  • gcc
  • libevent-devel
  • ncurses-devel

を導入するよ。

※導入済みの場合は読み飛ばしてね!

wgetを導入

wgetはWebから何かをダウンロードするときに使う便利なツールだよ。

# yum -y install wget

とっても簡単ね!

gccを導入

ソースをコードをコンパイルするのに必要だよ!

# yum -y install gcc

libevent-develを導入

# yum -y install libevent-devel

ncurses-develを導入

# yum -y install ncurses-devel

1. tmuxのソースコードを取得

wgetコマンドでgithubからtmuxのソースコードをダウンロードするよ。
Releasesから好きなバージョンを選んでね!

$ wget https://github.com/tmux/tmux/releases/download/2.9a/tmux-2.9a.tar.gz

2. 解凍

ダウンロードしたファイルを展開するよ。

$ tar xvf tmux-2.9a.tar.gz

3. コンパイル&インストール

解凍したフォルダに移動して、

$ cd tmux-2.9a

コンパイルして…

$ ./configure
$ make

インストール!

$ sudo make install

4. 起動!

$ tmux

起動できたかな??

参考

15
15
1

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
15
15