www.centos.org Forum Index CentOS 5 - General Support ant installation error
|
Bottom Previous Topic Next Topic |
| |
|
|
|---|
| Poster | Thread |
|---|
|
Re: ant installation error | #7 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/5/25
From Bangalore, India
Posts: 13
|
Ok
. How do I actually go about it. Tried changing ANT_HOME but still same issue, points to the older version. |
||
Posted on: 2013/2/28 9:39
|
|||
|
Re: ant installation error | #6 |
|
|---|---|---|---|
|
Professional Board Member
![]()
Joined: 2005/8/5
From Northern Illinois, USA
Posts: 6178
|
You misunderstood the post. He said "is preferable" not "is not preferable".
|
||
Posted on: 2013/2/21 14:21
|
|||
|
Re: ant installation error | #5 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/5/25
From Bangalore, India
Posts: 13
|
Hello, I have a similar problem i have a newer ANT in /usr/local/ant .... when did "which ant" it showed me that its still pointing to the default ANT "usr/bin/ant" installed with the Centos. How do i change it ?
I do understand that Changing the path to find the non-standard installation first is not preferable as mentioned by pschaff, but we have to get this done. Kindly help with this. |
||
Posted on: 2013/2/21 6:33
|
|||
|
Re: ant installation error | #4 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.
I must respectfully disagree. Changing the path to find the non-standard installation first is preferable to manually clobbering a component of an installed package with a link. |
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/1/6 21:27
|
|||
|
Re: ant installation error | #3 |
|
|---|---|---|---|
|
Newbie
![]()
Joined: 2012/1/6
From
Posts: 1
|
do a "which ant" to find out where it's running from. You should probably (re) link that to your ant installation.
|
||
Posted on: 2012/1/6 21:01
|
|||
|
Re: ant installation error | #2 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
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. |
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/1/2 21:51
|
|||
|
ant installation error | #1 |
|
|---|---|---|---|
|
Newbie
![]()
Joined: 2012/1/2
From
Posts: 1
|
Hi,
I installed the new ant version like that Quote: cd /usr/src I tried to make a compilation Quote: Class org.apache.tools.ant.taskdefs.ConditionTask doesn't support the nested "antversion" element. I enter the command : Quote: ant -v Result Quote: Apache Ant version 1.6.5 compiled on January 6 2007 Why the ant version is 1.6.5 ??? I installed the 1.8.2 version ???? I didn't forget to change ANT_HOME like Quote: export ANT_HOME=/usr/local/ant Please, help me ![]() Thank you in advance |
||
Posted on: 2012/1/2 10:26
|
|||
Top Previous Topic Next Topic |
|



Topic options
Print Topic
Threaded
Oldest First
anil


. How do I actually go about it. Tried changing ANT_HOME but still same issue, points to the older version.



You cannot start a new topic.