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? |
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. |
$ ant -diagnostics
You'll find something like ------------------------------------------- ANT_HOME/lib jar listing ------------------------------------------- ant.home: /usr/share/ant |
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 |
All times are GMT -5. The time now is 02:13 AM. |