-
Notifications
You must be signed in to change notification settings - Fork 77
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
Cannot install on Yosemite: homebrew-cask java 1.8.0_25, homebrew R 3.1.2 #36
Comments
Update: I can get rJava support complied if I pass the actual location of the
to seems that for Yosemite the help message for R should be modified as the current message below is inaccurate.
|
This still doesn't resolve the problem, as when the script detects what it assumes to be "system Java", it overrides the JAVA_CPPFLAGS to be Unfortunately installing the Apple Java for OS X 2014-001 package doesn't work either, which I hoped would should provides the necessary headers in the expected locations. The error remains the same, and it's clear the JAVA_CPPFLAGS are not being passed through correctly:
The simplest way to get it working seems to be to modify the script by preventing it detecting the host OS. For example, I simply modified the line
|
Ok, turns out for my case it was loading rJava correctly with the terminal version of R, but not in RStudio. For some reason the LD_LIBRARY_PATH configuration in RStudio was omitting the required JRE folder (
|
@gwinstanley |
Good point @yasirs, I forgot to mention that I usually set the JAVA_HOME variable in my
or if you want a specific version of Java (e.g. Java 8):
|
@gwinstanley check with RStudio - one way to make sure that you have correct vars set is to use As for configuration, with properly installed Oracle Java (do not set
|
I like the idea of launching from the |
So I've just upgraded to the latest Hombrew version of R (3.2.1_1) and latest Java (1.8.0_51), and I get the following using the recommended
|
BTW, if anyone's arrived at this thread still looking for a fix for the latest Java/rJava, I've created a gist for it. |
Not sure this is a rJava problem but looking for help.
Installing R via homebrew gives me this message:
running either (subbing
jdk1.8.0_25.jdk
for<version>
) fails not findingjni.h
java installs
jni.h
intoSince there was nothing at
/System/Library/Frameworks/JavaVM.framework/Headers/
wherejavareconf
seems to want to look for it, I created symlinks:and added
to
~/.bash_profile
since without itjavareconf
says the JAVA_HOME is not a valid path. This allowsjavareconf
to findjni.h
using:but then
javareconf
fails because it can't findjni_md.h
which is in/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/include/dawrin
looking at
javareconf
there is this code:I would think that this would allow
javareconf
to find thejni_md.h
but that's not happening.This may not be a rJava issue but since the R install said to run
javareconf
in order to enablerJava
support, I thought I would post here, but then again, I know just enough to know that I know nothing about this stuff. I'm just bummed I can't get rJava installed in R.Thanks for taking the time to read this.
The text was updated successfully, but these errors were encountered: