i did this once before, but have since forgotten how. i seem to remember having the ack.pl file in an "opt" directory close to root level on my Mac. i also remember that i will need to update my path settings in my ~/.profile
or ~/.bash_profile
, etc. I hope someone can fill in the blanks with some detailed instructions on how to do this properly.
- please note that i would like to know how to do this WITHOUT using any 3rd-party software / package managers (Homebrew, MacPorts, etc.).
OK - found the answer myself. Here's how i did it on OS X 10.10 Yosemite (no "opt" directory, no messing w/ editing my $PATH in /.profile, etc.)...
1 - set permissions on the directory /usr/local/bin to have read/write access for everyone.
2 - then run the following command from the Terminal...
curl http://beyondgrep.com/ack-2.14-single-file > /usr/local/bin/ack && chmod 0755 /usr/local/bin/ack
3 - change read/write permissions on /usr/local/bin back to 755 ("Read & Write" by "system" only, group "wheel" and "everyone" set to "Read only")
and that's it!