何がしたいか
yumでyum install ctags
とやると、exuberant-ctagsがインストールされてしまうけど、
私はuniversal-ctagsをインストールしたい
よしやるぞ
自分でビルドしてインストールする
クローンしてくる
git clone https://github.com/universal-ctags/ctags.git
インストール
こちらに方法書いてあるのでこの通りいきます
# クローンしてきたやつのディレクトリに移動
cd ctags
# なんかしてる
./autogen.sh
# インストールディレクトリが/usr/local/binになるように
./configure --prefix=/usr/local
# ビルド
make
# インストール
sudo make install
バージョン確認
ctags --version
こんな感じで出力されればOKかな?
Universal Ctags 0.0.0(befcb88), Copyright (C) 2015 Universal Ctags Team
Universal Ctags is derived from Exuberant Ctags.
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
Compiled: Nov 13 2018, 08:36:05
URL: https://ctags.io/
Optional compiled features: +wildcards, +regex, +iconv, +option-directory
後片付け
クローンしてきたディレクトリは丸ごと削除しておく
次は
以下を参考に、使っていきたい
CtagsでVimにタグジャンプ機能を追加する - Qiita