- libpcre
- liblzma
$ sudo yum install -y pcre-devel
$ sudo yum install xz-devel
$ cd /usr/local/src
$ sudo git clone https://github.com/ggreer/the_silver_searcher.git
$ cd the_silver_searcher
$ sudo ./build.sh
$ sudo make install
$ which ag
/usr/local/bin/ag
To clarify @kaiserhl's comment:
When I check out current master (9b00f5f) on a Centos 6.7 system and follow the instructions above, I'll get:
To make this work, I did a
git checkout 2.0.0
(the latest release tag) before running./build.sh
: