LoginSignup
10
8

More than 5 years have passed since last update.

linuxでtigをコンパイルする

Posted at

apt-getで使いたいバージョンのtigがインストールできないので、自前でtigをインストールする方法

やり方は簡単だが、そのままやろうとすると日本語が文字化けして読めなくなるので、その対処法をメモ

リポジトリのクローン

git clone https://github.com/jonas/tig.git

必要に応じて、使いたいバージョンを指定する

コンパイル

cd tig
./autogen.sh
./configure --without-ncurses #日本語対応(必要なければ./configureだけでOK)
make

--without-ncursesによってマルチバイト文字の表示に対応

インストール

sudo make install

インストール先を変更したい場合、make installのときに--prefixにて指定する

10
8
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
10
8