CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - General Support
  ant installation error

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  anil
      anil
Re: ant installation error
#8
Peeking in the Member Window
Joined: 2011/5/25
From Bangalore, India
Posts: 13
Got it. It was issue with the PATH variable,
export PATH=$PATH:/usr/local/ant/bin.
Changing it to
export PATH=/usr/local/ant/bin:$PATH
Did the trick. Thanks.
Posted on: 2013/2/28 14:44
Create PDF from Post Print
Top
  •  anil
      anil
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
Create PDF from Post Print
Top
  •  gerald_clark
      gerald_clark
Re: ant installation error
#6
Professional Board Member
Joined: 2005/8/5
From Northern Illinois, USA
Posts: 6264
You misunderstood the post. He said "is preferable" not "is not preferable".
Posted on: 2013/2/21 14:21
Create PDF from Post Print
Top
  •  anil
      anil
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
Create PDF from Post Print
Top
  •  pschaff
      pschaff
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
Create PDF from Post Print
Top
  •  howieu
      howieu
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
Create PDF from Post Print
Top
  •  pschaff
      pschaff
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
Create PDF from Post Print
Top
  •  regis012
      regis012
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
wget http://archive.apache.org/dist/ant/binaries/apache-ant-1.8.2-bin.tar.bz2
tar jxvf apache-ant-1.8.2-bin.tar.bz2
mv apache-ant-1.8.2 /usr/local/ant


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
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You cannot view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com