weixin_40087970
weixin_40087970
2017-11-01 11:18

用Mac系统的R载入rJava包的时候失败,原因是image not found,这要怎么办?

  • library
  • java
  • r语言
  • mac

技术小白一个,希望大神能够帮帮忙。我已经按照网上的教程安装rjava和Rwordseg。rjava install成功了但加载不出来错误如下:

library(rJava)
错误: package or namespace load failed for ‘rJava’:
loadNamespace()里算'rJava'时.onLoad失败了,详细内容:
调用: dyn.load(file, DLLpath = DLLpath, ...)
错误: 无法载入共享目标对象‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so’::
dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so, 6): Library not loaded: @rpath/libjvm.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so
Reason: image not found
这要怎么办呢?

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答