I'm having some trouble figuring out how to install Ant on Cygwin. I want to use Ant to build Nutch. I've looked through a bunch of tutorials but I can't find anything that is low level enough for me to understand. I need something like...
- Download ant, put it here
- Open Cygwin
- type "export ANT_HOME=..."
- ...
Can anyone help me out here?
Here's a step-by-step guide:
simply download and unzip ANT binaries say into
c:\apache-ant-1.8.1
download and unzip NUTCH sources say into:
c:\apache-nutch-1.2
open the command prompt and run the following:
the same would work from the Bash shell, just use Cygwin-style paths:
That's it, you will find a new directory
build
containing the output.For convenience, you might want to add the Ant bin directory to the PATH environment variable so that you don't have to give the full path each time, but that's optional.
BTW I just did those exact steps, and all went fine.
Finally, follow this tutorial to get started.
In Windows, add the path to your ant /bin directory to the Path system variable. This can easily be done by right clicking on Computer > Properties > Advanced System Settings > Environment Variables, click on Path in the System Variables, click on Edit and add ; followed by the path to your ant bin directory to the end of the Variable value.
Start or restart Cygwin.
Type
ant -version
The version should be displayed.Assuming you have a JDK already installed, you can do this:
which assumes you've unzipped Ant into
C:\apache-ant-1.7.1
. Then: