-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node-gyp rebuild fails. fatal error: 'jni_md.h' file not found on OSX 10.11.5 #343
Comments
I'm having the same issue. Also using jenv. Is it possible it's a problem with jenv? |
I am having the same issue when I tried to use the "jabba" java environment manager. Any updates on this issue? |
@gnizhak Have you figured out a solution for this? I have the same issue, managing java versions using jabba and when installing it fails. |
I ended up giving up on jenv and installing different sdks independently. So it has to be the way the jenv/jabba handles the paths on the dependencies. |
This is an issue I think for all conformant non-Oracle JDKs at least since 11 on macOS, because |
Mac OS Catalina 10.15.16, using jenv. I noticed that Per @doctorpangloss's comment copied the file to parent dir:
|
We use node-tika for our project and it's only dependency is node-java. Last week npm install started failing to an error during node-gyp rebuild
as you can see from the error message I use jenv to manage my java version but the issue appears on both java 1.7 and 1.8. My JAVA_HOME is thus set /Users/gnizhak/.jenv/versions/1.7 or 1.8
Both JDK installations are Oracle Java and I do not have java 1.6 installed.
xcode-select version 2343 and xcode version 7.3.1 (so gcc says Apple LLVM 7.3.0)
I'm not really in on how the java includes folder is setup on Oracle Java I tried to do some digging and found that
/Library/Java/JavaVirtualMachines/{jdk_version}/Contents/Home/include
does not contain jni_md.h directly but instead has a subfolder
/Library/Java/JavaVirtualMachines/{jdk_version}/Contents/Home/include/darwin
where the jni_md.h header file resides.This issue did not appear in May, but I was away from the project most of June and July so I cannot tell which update may have caused this issue.
I checked out the Info.plist capabilities section referenced in #90 (comment) and found that 1.8 already had the capability there and adding that to 1.7 did not resolve the issue.
My colleague with OSX 10.10.5 with xcode-select 2339/xcode 7.2.1 had no such issue.
The text was updated successfully, but these errors were encountered: