That is, unfortunately, the reality of Oracle taking over Java. They have no
idea what they are doing on macOS so once Apple stopped supporting system Java
you have to re-run
R CMD javareconf
every time you upgrade Java version since they their binaries are broken. There
is no way to link to Ora
That looks like a bad idea to me—unless I am mistaken, you will need to update
your link with every update to the JDK, otherwise R and RStudio could be out of
sync when building/loading rJava.
(Consider contacting the RStudio people for a more permanent solution, as Simon
suggested.)
> On Feb
This is indeed a problem with Rstudio:
I used the Rstudio 1.2.308 (development version) but the same occurred
with 1.1.419 version;
> library("rJava")
Erreur : package or namespace load failed for ‘rJava’:
.onLoad a échoué dans loadNamespace() pour 'rJava', détails :
appel : dyn.load(file, D
RStudio is not R, so you'll have ask ask their support how they pick up Java
settings. As you can see they are not taking the correct settings from R so it
may be a bug in RStudio.
Cheers,
Simon
> On Jan 31, 2018, at 2:48 PM, Marc Girondot wrote:
>
> Hi Simon,
>
> Half solution ! Thanks !
Looks like something is overriding R's ldpaths settings.
(R_JAVA_LD_LIBRARY_PATH should be exported with DYLD_FALLBACK_LIBRARY_PATH.)
Do you have any old .Renviron files lying around? Particularly in your home
directory (~)
> On Jan 31, 2018, at 2:48 PM, Marc Girondot wrote:
>
> Hi Simon,
>
Hi Simon,
Half solution ! Thanks !
I remove JAVA_HOME and when R is ran as root or non-root in terminal,
rJava package can be loaded. Great !
But in Rstudio, I have still a problem (see bellow).
Any suggestion ?
Thanks
Marc
> library(rJava)
Erreur : package or namespace load failed for ‘r
It means that you are likely setting JAVA_HOME incorrectly in your user
account. Don't set JAVA_HOME - you'll only likely break things by doing so.
Cheers,
Simon
> On Jan 31, 2018, at 10:52 AM, Marc Girondot wrote:
>
> Thanks for your help:
>
> Here are some results; First in terminal:
>
>
Thanks for your help:
Here are some results; First in terminal:
belinda:~ marcgirondot$ locate libjvm.dylib
/Applications/Xcode.app/Contents/Applications/Application
Loader.app/Contents/itms/java/lib/server/libjvm.dylib
/Library/Internet
Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/serve
Seems odd that R can’t find libjvm outside of sudo.
From R, run
Sys.getenv()
and check your DYLD_LIBRARY_PATH and DYLD_FALLBACK_LIBRARY_PATH variables.
Should be ‘[..]/Home/jre/lib/server’ in there somewhere. Check those paths for
libjvm.dylib
> On Jan 31, 2018, at 8:17 AM, Marc Girondot wr
Sorry... bad news. It works only if R is ran as root. If R is ran as
non-root user:
> library(rJava)
Erreur : package or namespace load failed for ‘rJava’:
.onLoad a échoué dans loadNamespace() pour 'rJava', détails :
appel : dyn.load(file, DLLpath = DLLpath, ...)
erreur : impossible de cha
I have found a solution based on the proposition of Keith. Thanks a lot
First I have made some cleaning because I had pieces of clang in many
places.
Then with a clean version I installed
clang-4.0.0-darwin15.6-Release.tar.gz using the version in
http://r.research.att.com/libs/
Sorry, ignore the installation question, I missed the ‘brew install’ line.
Try adding a symbolic link from the brew install of libomp to /usr/local/lib.
> On Jan 31, 2018, at 5:38 AM, Keith O'Hara wrote:
>
> Apple’s LLVM doesn’t support OpenMP, which explains the second error.
>
> How did y
Apple’s LLVM doesn’t support OpenMP, which explains the second error.
How did you install clang-5.0.1? If you installed using MacPorts, then you
might need to create a symbolic link to libomp in /usr/local/lib. Check if the
following exists:
/opt/local/lib/libomp/libomp.dylib
> On Jan 31, 20
Dear Experts,
I use now r-3.5 devel as it is stable (from http://r.research.att.com ,
version (2018/01/30, r74185) ) but I have a problem with compilation of
rJava package.
In short (all the explanations are bellow):
If I use clang 4.0.0 from here: http://r.research.att.com/libs/, I get
thi
14 matches
Mail list logo