How do I install ack on OS X (10.8.4)?

sgowd picture sgowd · Jul 2, 2013 · Viewed 7k times · Source

I am new to OS X and I am unable to figure out how to install ack. The instructions here didn't help, because the command "install" is failing. Please guide me proper commands.

So far, I have downloaded ack 2.04 and placed it in the /usr/bin folder and then ran perl Makefile.PL successfully. The next command install isn't working for me.

Answer

user2562923 picture user2562923 · Jul 9, 2013

If you use Homebrew you can simply do:

$ brew install ack

If you are new to OSX I highly recommend this approach because it makes installation of stuff like this MUCH easier. It is a package manager for OSX.

Homebrew link: http://brew.sh/