[MacPorts] #27830: sudo port install tomcat-native fails - Error cannot find jni_md.h
#27830: sudo port install tomcat-native fails - Error cannot find jni_md.h ----------------------------+----------------------------------------------- Reporter: ptm@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: jni_md.h | Port: tomcat-native ----------------------------+----------------------------------------------- Mac OS X Version 10.6.5 Looks like my out of the box JavaVM.framework folder hierarchy does not match what is expected. Full log is attached. -- Ticket URL: <https://trac.macports.org/ticket/27830> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27830: sudo port install tomcat-native fails - Error cannot find jni_md.h ----------------------------+----------------------------------------------- Reporter: ptm@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: tomcat-native ----------------------------+----------------------------------------------- Changes (by jmr@…): * keywords: jni_md.h => Comment: Could be the same problem as #26939 et al. Have you installed Java for Mac OS X 10.6 Update 3 but not Java for Mac OS X 10.6 Update 3 Developer Package? -- Ticket URL: <https://trac.macports.org/ticket/27830#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27830: sudo port install tomcat-native fails - Error cannot find jni_md.h ----------------------------+----------------------------------------------- Reporter: ptm@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: tomcat-native ----------------------------+----------------------------------------------- Comment(by ptm@…): I believe something similar is going on as I had to play with a few softlinks to get jvcs to build. I have not installed any java packages, but everything seems to be there, just not where macports seems to expect it to be :-( For example, jni_md.h is located at: /System/Library/Frameworks/JavaVM.framework/Headers It is a link: jni_md.h@ -> ../../CurrentJDK/Headers/jni_md.h I'm new to Mac, but not Unix. All I can note is that macports is looking for this file in (from the log): [[BR]][[BR]]:info:configure adding "-I/System/Library/Frameworks/JavaVM.framework/Home/include" to TCNATIVE_PRIV_INCLUDES [[BR]][[BR]]:info:configure checking os_type directory... Cannot find jni_md.h in /System/Library/Frameworks/JavaVM.framework/Home/ ...and it is not there... I'm not sure what the next line in the log is suggesting... [[BR]][[BR]]:info:configure configure: error: You should retry --with-os- type=SUBDIR -- Ticket URL: <https://trac.macports.org/ticket/27830#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27830: sudo port install tomcat-native fails - Error cannot find jni_md.h ----------------------------+----------------------------------------------- Reporter: ptm@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: tomcat-native ----------------------------+----------------------------------------------- Comment(by jmr@…): OK, so does installing the developer package help? [https://connect.apple.com/cgi- bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20719] -- Ticket URL: <https://trac.macports.org/ticket/27830#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27830: tomcat-native: Cannot find jni_md.h in /System/Library/Frameworks/JavaVM.framework/Home/ ----------------------------+----------------------------------------------- Reporter: ptm@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: tomcat-native ----------------------------+----------------------------------------------- -- Ticket URL: <https://trac.macports.org/ticket/27830#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27830: tomcat-native: Cannot find jni_md.h in /System/Library/Frameworks/JavaVM.framework/Home/ ----------------------------+----------------------------------------------- Reporter: ptm@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: tomcat-native ----------------------------+----------------------------------------------- Comment(by ptm@…): I've now installed the package as requested. Many thanks for pointing me at the developer centre. However, on inspecting the JavaVM.framework folder I find everything is still where is was... albeit some files with today's date. Any way, I pressed ahead a tried again to run - sudo port install tomcat- native - with the same result. Have Apple move things around for this version of Snow Leopard? -- Ticket URL: <https://trac.macports.org/ticket/27830#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27830: tomcat-native: Cannot find jni_md.h in /System/Library/Frameworks/JavaVM.framework/Home/ ----------------------------+----------------------------------------------- Reporter: ptm@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: tomcat-native ----------------------------+----------------------------------------------- Comment(by ptm@…): In order to get past this issue I adding the following softlink in /Library/Java/Home include@ -> ../Headers That did the trick, but why was this necessary? Thanks for all your help Cheers Paul -- Ticket URL: <https://trac.macports.org/ticket/27830#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27830: tomcat-native: Cannot find jni_md.h in /System/Library/Frameworks/JavaVM.framework/Home/ ----------------------------+----------------------------------------------- Reporter: ptm@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: tomcat-native ----------------------------+----------------------------------------------- Comment(by mmpestorich@…): Ran into this same problem when trying to install on Lion. I found this link that helped: [http://blog.hgomez.net/2011/07/13/building-universal- apache-tomcat-native-library-on-osx/ building-universal-apache-tomcat- native-library-on-osx]. Look toward the bottom of the page under the section entitled "A Note About Lion". It seems some header files have moved as indicated previously in this thread. I was able to successfully build and install by modifying one of the port definition's configure options to be `--with-java- home=/System/Library/Frameworks/JavaVM.framework/Versions/A/`. -- Ticket URL: <https://trac.macports.org/ticket/27830#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27830: tomcat-native: Cannot find jni_md.h in /System/Library/Frameworks/JavaVM.framework/Home/ -----------------------------+---------------------------------------------- Reporter: ptm@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: Port: tomcat-native | -----------------------------+---------------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: r86716 -- Ticket URL: <https://trac.macports.org/ticket/27830#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts