2012-04-02 80 views
0

当在安装rJava包,我得到了以下错误消息:配置错误安装rJava包

checking JNI data types... configure: error: One or more JNI types differ from the corresponding native type. You may need to use non-standard compiler flags or a different compiler in order to fix this. ERROR: configuration failed for package ‘rJava’

可我知道什么是此故障,以及如何解决这个问题的原因是什么?谢谢。

+2

您应该包含更多信息。例如,操作系统,R版本,Java版本,... – csgillespie 2012-04-03 08:09:41

回答

0

如果安装但不起作用,请先尝试:remove.package(“rJava”)和install.package(“rJava”)。有时帮助。如果仍然ahvgin问题发布更多数据。但除非没有必要。

编辑:另请参阅java路径,如果它正确设置。有时它搞砸了。