![]() ![]() # Finished adapting your PATH environment variable for use with MacPorts.Įxport JAVA_HOME=$(/usr/libexec/java_home) # MacPorts Installer addition on _at_23:25:14: adding an appropriate PATH variable for use with MacPorts.Įxport PATH=/opt/local/bin:/opt/local/sbin:$PATH: $ANT_HOME/bin # Your previous /Users/adm/.bash_profile file was backed up as /Users/adm/.bash_profile.macports-saved_at_23:25:14 My /.bash_profile look like this after I added ANT_HOME and edited PATH: export ANT_HOME=/usr/local/ant In order to have Ant accessible from any folder we need to setup ANT_HOME variable and add bin folder to the PATH variable: macbook:Downloads adm$ vi ~/.bash_profile Note: As you can see sudo need to be used. Macbook:Downloads adm$ sudo mv apache-ant-1.9.6 /usr/local/ant ![]() Mv: rename apache-ant-1.9.6 to /usr/local/ant: Permission denied I will move Ant to /usr/local/ant using the mv command: macbook:Downloads adm$ mv apache-ant-1.9.6 /usr/local/ant Note: The output will be very long, so I removed it from here. Macbook:Downloads adm$ tar vxf apache-ant-1.9. To extract from the archive run the tar command as in the following example: macbook:Downloads adm$ pwd The file was downloaded in my Downloads folder. Installation Step1 - download the Apache Antįrom the download page, section Current Release of Ant, download the tar.gz version, currently version 1.9.6. If you have a similar output you need to install Apache Ant. In order to check this, from terminal run the following command: macbook:~ adm$ ant -v Some of the Mac OS versions already have pre-installed Apache Ant. In this tutorial, I will show you how to install Apache Ant on Mac OS X.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |