Opened 11 years ago
Last modified 9 years ago
#41107 new defect
Apache-ivy fails to install on OS X Mavericks
Reported by: | lgo@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | mavericks haspatch | Cc: | |
Port: | apache-ivy |
Description
Trying to update apache-ivy to 2.3.0_0 on a MacBook Pro recently updated to OS X Mavericks fails with a 'JAVA_HOME not defined correctly' error.
This appears to be caused by OS X Mavericks not including Java 6. Two ways to solve this:
- as a workaround, installing a JRE 6
- applying attached patch to the apache-ivy portfile
Attachments (1)
Change History (7)
Changed 11 years ago by lgo@…
Attachment: | port_apache-ivy_java.patch added |
---|
comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | lgo@… removed |
---|---|
Keywords: | mavericks haspatch added |
Port: | apache-ivy added |
comment:3 Changed 10 years ago by rbrewer@…
Since this issue hasn't been resolved, i tried hand patching my Portfile with the "PortGroup java 1.0" but that still didn't work for me.
I just horribly kludged it by pasting my actual JAVA_HOME path onto the "build.env" line, and that worked.
Is anyone working on this?
comment:4 Changed 10 years ago by mf2k (Frank Schima)
Not likely since this port does not have a maintainer. Please attach your patch.
comment:5 Changed 9 years ago by robogeek (David Herron)
Replying to lgo@…:
Trying to update apache-ivy to 2.3.0_0 on a MacBook Pro recently updated to OS X Mavericks fails with a 'JAVA_HOME not defined correctly' error.
This appears to be caused by OS X Mavericks not including Java 6. Two ways to solve this:
- as a workaround, installing a JRE 6
- applying attached patch to the apache-ivy portfile
I had the same problem on OS X 10.10 (whatever it's code name is)
Just installing a JDK from Su..er..Oracle didn't do the trick. Instead:
$ sudo su Password: sh-3.2# ln -s /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/ /Library/Java/Home sh-3.2# ls -l !$ ls -l /Library/Java/Home lrwxr-xr-x 1 root wheel 64 Sep 4 16:39 /Library/Java/Home -> /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/ sh-3.2# exit tippy:~ davidherron$ sudo port install cassandra ---> Computing dependencies for cassandra ---> Dependencies to be installed: apache-ivy ---> Building apache-ivy ---> Staging apache-ivy into destroot ---> Installing apache-ivy @2.3.0_0 ---> Activating apache-ivy @2.3.0_0 ---> Cleaning apache-ivy
The Cassandra installation fails for a different reason, FWIW.
comment:6 Changed 9 years ago by jhr@…
It seems that /Library/Java/Home was used in earlier versions of Mac OS X, but is no longer defined (I'm on 10.10.5). The robust way to specify the JAVA_HOME variable on Mac OS X is
export JAVA_HOME=`/usr/libexec/java_home`
Patch to make apache-ivy install on OS X Mavericks