LoginSignup
0

More than 5 years have passed since last update.

Installing ag 1.0.2 on CentOS 6.8

Last updated at Posted at 2016-12-14

rpm とかでインストールできるのはバージョンが古いので、ビルドしました

仮想 PC 上でやってるので、Guest Additions をインストールした段階で gcc とかはインストールされるんで、そういう前提で書いてます。

依存するライブラリのインストール

% sudo yum install -y pcre-devel
% sudo yum install -y xz-devel

aclocal のインストール

ビルドに必要なコマンド aclocalautomake 内にある

% sudo yum install -y automake

github からソースを取ってきて展開

% sudo yum install unzip
% wget https://github.com/ggreer/the_silver_searcher/archive/master.zip
% unzip master.zip

git clone とかでも可

ビルドとインストール

% cd the_silver_searcher-master
% sudo sh build.sh
% sudo make install

バージョン確認

% ag --version
ag version 1.0.2

Features:
  -jit +lzma -zlib

参考にしたサイト。つかそのまんま。

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
0