LoginSignup
2
0

More than 5 years have passed since last update.

インストール場所を指定して最新版のtmuxをインストールする方法

Posted at

インストール場所を指定してUbuntuに最新版のtmuxをインストールする方法をメモしておきます。

依存モジュール

libevent-dev,libncurses5-devの2つが必要なのでインストールしておきます。

sudo apt install -y libevent-dev libncurses5-dev

ビルドに必要なモジュール

build-essential,automake,pkg-configの3つが必要なのでインストールしておきます。

sudo apt install -y build-essential automake pkg-config

ビルド

mkdir $HOME/tmp
mkdir -p $HOME/usr/local
cd $HOME/tmp
git clone https://github.com/tmux/tmux.git
cd tmux
./autogen.sh
./configure --prefix=$HOME/usr/local
make
make install

起動

$HOME/usr/local/binにパスを通す必要があります。

export PATH=$HOME/usr/local/bin:$PATH

パスを通した後にtmux -Vを実行すると最新版のtmuxがインストールできていることが確認できると思います。

2
0
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
0