Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 614
sgowd Avatar asked Jul 02 '13 20:07

sgowd


People also ask

What is ack mac?

An ACK is a control frame that is sent by a receiver to a sender to inform that the data frame is successfully received.


2 Answers

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/

like image 188
user2562923 Avatar answered Oct 07 '22 08:10

user2562923


You can also use the MacPorts installer for OSX:

sudo port install p5.<nn>-app-ack

where <nn> is the version of your Perl installation (Ack is written in Perl). If you don't know the version of Perl you have installed, just type:

perl --version

and you'll know what you need for the port command. The Ack installation page has the information you need for this. More information about MacPorts can be found here.

Searching the web, you'll find LOTS of opinions about Homebrew versus MacPorts. I've used both; they both work (and both fail occasionally - installation of this kind is complex). You'll need to pick one or the other and stick with it as Homebrew doesn't play nicely with MacPorts (or vice versa, depending on your POV). Overriding choice for me is MacPorts as it has many more packages than Homebrew and it puts its stuff in /opt/local to stay out of the way of other programs. YMMV

like image 24
JESii Avatar answered Oct 07 '22 09:10

JESii