Thursday, March 30, 2006

Issues in Installing and Upgrading Ant

ANT: ANT can be installed in many ways, the most convenient is probably with an RPM, if you can find one for your particular distribution of Linux. Alternatively building from source is relatively easy. There may be dependencies required by ANT, these will usually be reported as errors or warnings, when you attempt to “./configure” or “make” and you will be prompted with the names of the dependencies to be installed before being able to completely install ANT. Once ANT compiles completely, ANT_HOME must be set in your shell. In bash, the .bash_profile should include an export statement for this purpose.

I ran into several quirks with the installation of Ant. The first was due to a conflict with the previous installation of Ant that came with the system, another problem was associated with the path to Ant. To resolve these issues, I had to first make sure there was no ant.conf file on my system, and most importantly, set the PATH to point to the install directory for ANT. In my case, I installed from source, running (./configure, make, make install), and pointing to the directory in my .bash_profile as follows:

export ANT_HOME=/home/perin/prep/apache-ant-1.6.5

There were a few dependencies missing that Ant required, but those were installed in the order output after running ‘configure’ and all installed smoothly

Source: http://www.cbil.upenn.edu/downloads/RAD/JCPerin_InstallingRADSA.doc

No comments: