I have never used Perl, but I am really impressed by the ack, which I would like to use for source code searching, etc.
Can anyone guide me of how to make use of this excellent library on Windows?
I have never used Perl, but I am really impressed by the ack, which I would like to use for source code searching, etc.
Can anyone guide me of how to make use of this excellent library on Windows?
You can install ack via cpan:
install strawberry perl
run cmd as admin
install ack:
cpan> force install App::Ack
it should work from there, followed this guide: http://www.jeedo.net/how-to-install-ack-on-windows-10/
Worked without any hitches.
Start by installing perl http://strawberryperl.com/
Install App::Ack by typing (in a windows command shell)
And undoubtedly this will prove useful http://learn.perl.org/
You should also run the following command to enable color highlights: cpan Win32::Console::ANSI
Not all the tests pass on all versions of Windows. You can most likely get 100% functionality from ack even if the install tests fail. Here is the command to force installation if failing tests prevent a normal install:
I had to force cpan to install
App::Ack
since some of the tests didn't pass:If you have cygwin installed, you can simply download the standalone version. Perl is installed with cygwin. Here are the steps:
Remove the comments from the lines:
Load the changes:
Make a bin directory:
Download ack (from the homepage):
Note: you will have to manually install curl as it doesn't come with cygwin by default.