R:rJava包安装失败使用install.packages("rJava")命令安装rJava时出现以下错误:checking Java support in R... present:interpreter : '/usr/bin/java'archiver : '/usr/bin/jar'compiler : '/usr/bin/javac'header prep.: '/usr/bin/javah'cpp flags : '-I/usr/lib/jvm/java-6-sun-1.6.0.20/jre/../include -I/usr/lib/jvm/java-6-sun-1.6.0.20/jre/../include/linux'java libs : '-L/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/amd64/server -L/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/amd64 -L/usr/lib/jvm/java-6-sun-1.6.0.20/jre/../lib/amd64 -L -L/usr/java/packages/lib/amd64 -L/usr/lib64 -L/lib64 -L/lib -L/usr/lib -ljvm'checking whether JNI programs can be compiled... yeschecking 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’我安装了Java JDK并java -version返回以下内容:$ java -versionjava version "1.6.0_20"Java(TM) SE Runtime Environment (build 1.6.0_20-b02)当谷歌搜索错误时,我发现其他人遇到了同样的问题,但没有找到除了“安装整个JDK,而不仅仅是JRE”之外的解决方案。我读到的另一件事是运行sudo R CMD javareconf哪个运行非常愉快,没有错误。有什么想法我的问题是什么?
添加回答
举报
0/150
提交
取消