无法在Macbook Pro 64位中安装Rjava

时间:2019-07-05 17:45:08

标签: java r macos

我正在尝试运行JDBC软件包。但是,这需要我安装rjava软件包。当我安装rjava库时,出现以下错误:

library(rJava)
Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.

Error: package or namespace load failed for ‘rJava’:
 .onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.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/rJava/libs/rJava.so
  Reason: image not found
In addition: Warning message:
In system("/usr/libexec/java_home", intern = TRUE) :
  running command '/usr/libexec/java_home' had status 1 

0 个答案:

没有答案