Re: ant installation error

Posted by pschaff on 2012/1/2 21:51:46
Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature, and read about Installing Software and Repositories, and note the warnings and advice about installing and configuring the yum priorities plugin. Non-core repos should have a higher numeric value, which is a lower priority. Lower is "better" as in golf scores.

Please pay particular attention to the evils of Source Installs. Source installs as root are especially dangerous, but looks like yours is confined to /usr/local so it is probably harmless.

There are standard and 3rd party ant packages available. Apparently you have the standard package installed and that is being found before your source install. I don't see 1.8.2 in the repos so you either need to make your version work or rebuild from a source RPM if you require the later version.

You need /usr/local/ant/bin (or wherever the ant bin directory lives) on your path before /usr/bin where the default ant binary is found. You may also need to adjust the library path.

This Post was from: https://www.centos.org/newbb/viewtopic.php?forum=37&topic_id=35034&post_id=150931