- 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
// , I can confirm that this works on CEntOS 6.7 even without
git
installed, if one downloads the.zip
file of the master branch of the Git repository ofthe_silver_searcher
. I highly recommend using a set of instructions that do not require git.