LoginSignup
16
15

More than 5 years have passed since last update.

[tmux 2.3対応] tmuxの最新をソースからビルドする

Last updated at Posted at 2015-11-09

tmuxの最新を入れたいのでソースからビルドする

検証環境

Ubuntu 14.04

ビルド手順

tmuxの最新ソースの取得

ソースはGitHubからcloneできます。

依存パッケージのインストール

libeventに依存しているのでdevelパッケージを取得する

apt
# ビルドツール
sudo apt-get install automake

# 依存モジュール
sudo apt-get install libevent-dev libncurses5-dev

# クリップボード共有用
sudo apt-get install xsel
RedHat系用(yum)
# ビルドツール
sudo yum install automake

# 依存モジュール
sudo yum install libevent-devel ncurses-devel

# クリップボード共有用
sudo yum install xsel

ビルド実施

以下ビルドスクリプト

build.sh
#!/bin/bash -xeu

if [ ! -d tmux ]; then
    git clone https://github.com/tmux/tmux.git
fi

cd tmux

# checkout latest tag
git checkout $(git tag | sort -V | tail -n 1)

sh autogen.sh

./configure

make -j4

sudo make install

git clone してそのままだと tmux -V の結果がt tmux master になってしまうため、最新タグでチェックアウトするのをおすすめします。

バージョンアップによる既知の不具合

mouse設定関連でエラーが出る(2.1~)

tmux v2.1からmouse関連の設定が変わった

vi-copy周りでエラーが出る(2.3~)

tmux 2.3 にしたら "unknown key table: vi-copy" というエラーがでるようになった - @blog = Blog.new(author: "nyangry")

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