rJava安装无法找到libjvm.so

时间:2016-06-30 06:27:34

标签: java r rjava

不确定为什么rJava无法正确安装。

我尝试ping libpath但它仍然无效..?

.libPaths( c( .libPaths(), "/usr/lib/jvm/java-8-oracle/jre/lib/amd64/server") )


ubuntu@ip-10-0-0-76:/$ ls -al /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
-rwxr-xr-x 1 root root 16925812 Jun 30 05:53 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so

...误

> library(rJava)
Error : .onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/home/rstudio/R/x86_64-pc-linux-gnu-library/3.3/rJava/libs/rJava.so':
  libjvm.so: cannot open shared object file: No such file or directory
Error: package or namespace load failed for ‘rJava’

0 个答案:

没有答案