How to detect and uninstall apache ant ? | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

How to detect and uninstall apache ant ?

UNIX for Dummies Questions & Answers


Tags
ant, apache, apache ant

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-09-2010
ninadgac ninadgac is offline
Registered User
 
Join Date: Jun 2010
Last Activity: 12 June 2010, 2:52 PM EDT
Posts: 15
Thanks: 7
Thanked 0 Times in 0 Posts
How to detect and uninstall apache ant ?

Hello,
At my linux server I think there are 2 duplicate Apache Ant Installation
1) opt/ant
2) usr/local/ant

And whenever I tires to build ant using command 1)cd opt/ant 2) ant or 1)cd usr/local/ant 2) ant it shows error message "ant build failed"

Does it show above error due to duplicate installation?

1) Can I delete both ANT folders with rm -rf ant and install apache ant again? 2) Will deletion cause any harm?

Thanking You

Regards
ninad
Sponsored Links
    #2  
Old 06-09-2010
verdepollo's Avatar
verdepollo verdepollo is offline
Registered User
 
Join Date: Mar 2010
Last Activity: 3 September 2014, 11:17 AM EDT
Location: Mexico
Posts: 725
Thanks: 11
Thanked 106 Times in 102 Posts
It does not matter if you are under /opt/ant or /usr/local/ant, if you just run "ant" I'm pretty sure it's taking the one from your $PATH or $ANT_HOME.

It'd be different if you run /opt/ant OR /usr/local/ant.

Quote:
Does it show above error due to duplicate installation?
It's unlikely.

Quote:
Can I delete both ANT folders with rm -rf ant and install apache ant again?
Yes

Quote:
Will deletion cause any harm?
No
The Following User Says Thank You to verdepollo For This Useful Post:
ninadgac (06-09-2010)
Sponsored Links
    #3  
Old 06-09-2010
ninadgac ninadgac is offline
Registered User
 
Join Date: Jun 2010
Last Activity: 12 June 2010, 2:52 PM EDT
Posts: 15
Thanks: 7
Thanked 0 Times in 0 Posts
Hello,
Thanks for your reply. I managed to run install latest version(1.8.1) of ant successfully.
I used following commands at my shell in which I logined with username root which is supreme userand export ANT_HOME=/opt/ant & export PATH=$PATH:/opt/ant/bin commands at my shell, after that ANT starts running and I tested it with ant -version command.
but after I logged out of shell and again logged in to find out ANT is not running again and path ANT_HOME and other PATH which I set before is empty. I wonder why it not saving changes? at ANT_HOME and PATH.

Really strange.

Regards
ninad
    #4  
Old 06-09-2010
Corona688 Corona688 is online now Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 31 October 2014, 12:16 PM EDT
Location: Saskatchewan
Posts: 19,737
Thanks: 831
Thanked 3,373 Times in 3,160 Posts
Environment variables don't work that way, they're neither system-wide nor persistent. Child processes inherit copies from parents and that's it. You need to modify a login script/profile/etc to set them correctly in the first place on login.
The Following User Says Thank You to Corona688 For This Useful Post:
ninadgac (06-09-2010)
Sponsored Links
    #5  
Old 06-09-2010
ninadgac ninadgac is offline
Registered User
 
Join Date: Jun 2010
Last Activity: 12 June 2010, 2:52 PM EDT
Posts: 15
Thanks: 7
Thanked 0 Times in 0 Posts
Wrench

Hello,
I edited root/.bash_profile file for
ANT_HOME=/opt/ant
PATH=$PATH:$HOME/bin:/opt/ant/bin


ANT is working now.

However I still have problem with building ANT for my RED5 service

Regards,
ninad
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Uninstall Apache web server RobertFord Solaris 4 04-16-2010 10:48 AM
How to install and uninstall apache on Red Hat Linux 5 sunray Red Hat 4 02-05-2010 11:23 AM
Perl - How to uninstall? Will pkgrm uninstall all versions? alanlh Solaris 1 06-04-2007 12:51 PM
Uninstall Apache 1.3.37 sagolo Solaris 1 08-28-2006 07:18 AM
how do u uninstall apache matt2kjones UNIX for Dummies Questions & Answers 8 10-03-2002 04:12 PM



All times are GMT -4. The time now is 12:25 PM.