LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-05-2005, 06:57 PM   #1
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: SuSE 9.2 Professional, OpenSuSE 10.1 64 bit, Open SuSE 10.2, Debian Etch
Posts: 535

Rep: Reputation: 30
ANT installation directory


I'm trying to install some software.
It needs ant, which I installed from the SuSE 9.2 dvd

The instructions say:
Set the ANT_HOME environment to the installation directory.
Add $ANT_HOME/bin to your PATH environment.

If i do a "locate ant", I see:
/usr/share/java/ant-1.6.2.jar
/usr/share/javadoc/ant-1.6.2
/usr/share/javadoc/ant-1.6.2/allclasses-frame.html
...and so on

The problem is that I'm not sure what the ant installation directory is and that I don't see a /bin/ folder associated with any ant directories.
What should I do?
 
Old 04-06-2005, 12:00 PM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 927

Rep: Reputation: 30
For me at least, the ant directory is /usr/local/ant/, and that would make $ANT_HOME/bin be /usr/local/ant/bin/:

[lthurber@hostname ~]$ echo $PATH
/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:.:/opt/IBM/director/bin:/opt/gnome/bin:/sbin:/home/lthurber/java/bin:/usr/local/ant/bin:/home/lthurber/projects/citicom/build/dev:/usr/java/bin:/usr/local/ant/bin:/home/db2inst1/sqllib/bin:/home/db2inst1/sqllib/adm:/home/db2inst1/sqllib/misc

Alternatively, you could uninstall and reinstall ant, this time giving a directory (i.e. /usr/local) where you'd like it to be installed so that next time you know where to find it.
 
Old 06-23-2006, 05:35 AM   #3
osio
Member
 
Registered: Jun 2005
Posts: 70

Rep: Reputation: 15
$ ant -diagnostics

You'll find something like
-------------------------------------------
ANT_HOME/lib jar listing
-------------------------------------------
ant.home: /usr/share/ant
 
Old 09-17-2009, 05:42 AM   #4
shravee
Member
 
Registered: Sep 2009
Posts: 57

Rep: Reputation: 15
Post How to install ant

i unzipped the ant.tar.gz file in /usr/Ant/

and in the etc/bashrc file i set the following.

ANT_HOME=/usr/Ant/apache-ant-1.7.0
PATH=$ANT_HOME/bin:$PATH

saved the file and exited.

then entered source ./bashrc


are these the installation steps or anything else is required.









regards
shravan
 
  


Reply

Tags
ant, diagnostics, directory, find, home


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems about ant simprince Programming 1 11-08-2005 09:53 AM
Installation directory Jongi Linux - General 9 10-10-2005 08:09 AM
problem with ant os2 Programming 1 05-20-2005 12:13 AM
installing ant is asking for jaxp_parser_impl giovannym Linux - Newbie 0 06-18-2004 02:04 PM
Jakarta Ant?? powadha Linux - Software 3 01-19-2004 12:46 PM


All times are GMT -5. The time now is 12:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration