Skip to content
Prev 12350 / 15075 Next

rJava compilation on R 3.5 devel [NOt completely SOLVED]

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 ?rJava?:
 ?.onLoad a ?chou? dans loadNamespace() pour 'rJava', d?tails :
 ? appel : dyn.load(file, DLLpath = DLLpath, ...)
 ? erreur : impossible de charger l'objet partag? 
'/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so, 
6): Library not loaded: @rpath/libjvm.dylib
 ? Referenced from: 
/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so
 ? Reason: image not found


Here are the Sys.getenv() in the 3 cases (terminal R, root or not, and 
Rstudio):
Rstudio

DYLD_FALLBACK_LIBRARY_PATH
/Library/Frameworks/R.framework/Resources/lib:/Library/Frameworks/R.framework/Resources/lib:/Users/marcgirondot/lib:/usr/local/lib:/usr/lib::::
DYLD_LIBRARY_PATH
/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/server

R (in terminal, non-root)

DYLD_FALLBACK_LIBRARY_PATH
/Library/Frameworks/R.framework/Resources/lib:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/server

R (in terminal, root)

DYLD_FALLBACK_LIBRARY_PATH
/Library/Frameworks/R.framework/Resources/lib:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/server



Le 31/01/2018 ? 19:49, Simon Urbanek a ?crit?: