[MacPorts] #57255: Soprano needs Java
MacPorts
noreply at macports.org
Sat Oct 6 14:46:04 UTC 2018
#57255: Soprano needs Java
----------------------+----------------------
Reporter: milomak | Owner: pixilla
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: soprano |
----------------------+----------------------
Comment (by stanimura):
The same error even with Java. Installing Java is not solution.
The version of Java is the following:
{{{
$ sudo /usr/libexec/java_home -V
Matching Java Virtual Machines (2):
11, x86_64: "OpenJDK 11"
/Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home
1.8.0_121, x86_64: "Java SE 8"
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home
}}}
The classical solution is to make symbolic link on
/System/Library/Frameworks/JavaVM.framework/Headers, but it is not
possbile on Mojave because of rootless system.
However, soparno is succeded to build on Mojave simply after comment out
pre-configure in Portfile.
{{{
# pre-configure {
# if {![file isfile
"/System/Library/Frameworks/JavaVM.framework/Headers/jni.h"]} {
# ui_error "${name} requires the Java for Mac OS X development
headers."
# if {${os.major} == 11} {
# ui_error "Download the Java Developer Package from:
<http://support.apple.com/kb/DL1421>"
# } elseif {${os.major} == 10} {
# ui_error "Download the Java Developer Package from:
<https://connect.apple.com/cgi-
bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20719>"
# } elseif {${os.major} == 9} {
# ui_error "Download the Java Developer Package from:
<https://connect.apple.com/cgi-
bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20720>"
# } else {
# ui_error "Make sure your Xcode installation is complete."
# }
# return -code error "missing Java headers"
# }
# }
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57255#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list