*port install ant* *$ port install ant* Error: Insufficient privileges to write to MacPorts install prefix.
$ sudo port install ant Error: Port ant not found $ sudo port install apache-ant ---> Cleaning apache-ant ---> Scanning binaries for linking errors: 100.0% ---> No broken files found. $ type -a ant ant is /opt/local/bin/ant # MacPorts ant is /usr/bin/ant $ /opt/local/bin/ant -version *Apache Ant(TM) version 1.9.3 compiled on December 23 2013* On Fri, Mar 7, 2014 at 4:21 PM, Edwin Castro <0ptikgh...@gmx.us> wrote: > Also > > port install ant > > See http://www.macports.org/ > > On 3/7/2014 7:12 AM, Harold Putman wrote: > > brew install ant > > > > See http://brew.sh > > > > > > > > > > On Wed, Mar 5, 2014 at 10:12 PM, Tony Anecito <adanec...@yahoo.com> > > wrote: > > > >> Many Many Thanks!! > >> > >> -Tony > >> > >> > >> > >> > >> > >> On Wednesday, March 5, 2014 6:28 PM, BryanBerg > >> <bb...@spawar.navy.mil> wrote: > >> > >> It does, I have it installed on OS X, separate from my IDE. > >> > >> Ant installation instructions are also at: > >> > >> http://ant.apache.org/manual/index.html > >> > >> Be certain to add ant-contrib-1.0b3.jar into your ANT_HOME > >> installation directory, I'm not sure if this was specified in the > >> instructions, but not having this jar gave me some hiccups. > >> > >> Bryan > >> > >> > >> On 3/5/14 3:50 PM, Tony Anecito wrote: > >>> I am already using Eclipse on the Mac. I usually setup a build > >> environment separate from an IDE. I know Windows is different but > >> was hoping since Ant uses Java that it would work under OS X. > >>> > >>> Thanks, -Tony > >>> > >>> > >>> > >>> On Wednesday, March 5, 2014 3:14 PM, Peter West > >>> <li...@pbw.id.au> wrote: > >>> > >>> Download the binary distribution (latest is 1.9.3) from > >> http://ant.apache.org/bindownload.cgi > >>> > >>> Unzip (or gunzip) the distribution somewhere on your system. If > >>> you are > >> happy using sudo, you can put it in /usr/local, for example. > >> Otherwise, put it in you home directory at a convenient > >> location. > >>> > >>> It's a good idea to create a softlink to the distribution > >>> directory. So > >> if you have /Users/me/software/apache-ant-1.9.3, create a link > >> like so: > >>> $ cd /Users/me/software $ ln -s apache-ant-1.9.3 ant > >>> > >>> Now you can set the ANT_HOME environment variable to > >> /Users/me/software/ant, and when you install a new distribution > >> of ant, you only have to delete the old link and create a new > >> one. > >>> > >>> In /users/me/software/ant is a directory bin which contains the > >>> shell > >> scripts (compatible with linux/unix and os x) which will be used > >> to run ant. You need to make sure that the bin directory is on > >> your PATH. > >>> > >>> In your .profile, add the following. > >>> > >>> Near the top of the file, define these functions: > >>> > >>> set_env_var () { eval export $1=\""$2"\" eval launchctl setenv > >>> "$1" \""$2"\" } > >>> > >>> unset_env_var () { unset $1 eval launchctl unsetenv "$1" } > >>> > >>> Anywhere below that in .profile, you can now define > >>> environment > >> variables that will also be set for programs that run directly > >> from the GUI. > >>> > >>> After your PATH environment variable has been set, add this: > >>> > >>> set_env_var ANT_HOME /Users/me/software/ant > >>> > >>> PATH="$PATH:$ANT_HOME/bin" export PATH launchctl setenv PATH > >>> "$PATH" > >>> > >>> > >>> Peter West > >>> > >>> ...and again, as his custom was, he taught them. > >>> > >>> > >>> On 6 Mar 2014, at 7:03 am, Tony Anecito <adanec...@yahoo.com> > >>> wrote: > >>> > >>>> Hi All, > >>>> > >>>> I am new to Mac OS X. What is the easiest way to get Ant > >>>> running on OS > >> X? I tried copying my ant folder from Windows to Mac OS X and it > >> would not run. > >>>> > >>>> Thanks! -Tony > >>> > >>> --------------------------------------------------------------------- > >>> > >>> > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > >>> For additional commands, e-mail: user-h...@ant.apache.org > >> > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > -- Wolfgang Häfelinger