我最近一直试图从MLR包中获取FSelector,但是在我的mac上遇到了同样的java问题:
错误:'FSelector'的包或命名空间加载失败: .onLoad在'rJava'的loadNamespace()中失败,详情: call: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):未加载库:@ rpath / libjvm.dylib 参考自:/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so 原因:找不到合适的图像。找到了: /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries/libjvm.dylib:mach-o,但架构错误 /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries/libclient.dylib:mach-o,但架构错误
有谁知道如何解决这个问题?谢谢!