I have tried to install the R
package JavaGD
on MacOS 10.14.6. My R
version is 3.6.1. When I do instal.packages there is apparently no error, but when I do in R console:
library(JavaGD) Error: package or namespace load failed for ‘JavaGD’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/JavaGD/libs/JavaGD.so': dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/JavaGD/libs/JavaGD.so, 6): Library not loaded: /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/server/libjvm.dylib Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/library/JavaGD/libs/JavaGD.so Reason: image not found
/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/server/libjvm.dylib
– Oo.oOjdk 11
. Before I hadjdk1.8.0_144.jdk
– sbacsudo R CMD javareconf ...
I getclang-6.0: warning: no such sysroot directory: '/Applications/XCode/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/' [-Wmissing-sysroot] In file included from conftest.c:1: /Library/Java/JavaVirtualMachines/jdk-11.0.4.jdk/Contents/Home/include/jni.h:39:10: fatal error: 'stdio.h' file not found #include <stdio.h> ^~~~~~~~~ 1 error generated. make: *** [conftest.o] Error 1 Unable to compile a JNI program
– sbac