Skip to content

Instantly share code, notes, and snippets.

@jsivakumaran
Created June 17, 2016 03:16
Show Gist options
  • Save jsivakumaran/0519f1e43f21f711c51ab11f5b98a8ad to your computer and use it in GitHub Desktop.
Save jsivakumaran/0519f1e43f21f711c51ab11f5b98a8ad to your computer and use it in GitHub Desktop.
Installing ag on CentOS
Installing ag on CentOS
Prerequistes
$ 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
@vimfun
Copy link

vimfun commented Jul 12, 2017

zlib-devel is necessary sometimes

# 0. Prerequistes
sudo yum install pcre-devel -y
sudo yum install xz-devel -y
sudo yum install zlib-devel -y 

# 1. Get the code
cd /usr/local/src
sudo git clone https://github.com/ggreer/the_silver_searcher.git

# 2. Build and install it
cd the_silver_searcher
sudo ./build.sh
sudo make install

# 3. Check it
which ag
# => /usr/local/bin/ag

Thanks for your gist. :-) 👍 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment