I encountered this problem when installing rJava on R3.0.1: "configure: error: one or more JNI types are different from the corresponding type"
A detailed message is given below. I searched for similar problems, but my problem is a little more complicated, and many of the proposed solutions either did not work, or I could not try, because I work on a server on which I do not have write access to the system libraries.
OS : Linux 2.6.18-348.6.1.el5 # 1 SMP Tue May 21 15:44:27 EDT 2013 x86_64 x86_64 x86_64 GNU / Linux (information given by entering "uname -a" sorry, I could not understand this information "
R : R3.0.1, I downloaded the source, placed it in my home directory and built R from the source.
rJava : I ran 'install.packages ("rJava")', during installation I got:
===========================
checking Java support in R ... is present:
interpreter: '/ usr / bin / java' Archiver: '/ usr / bin / jar' compiler: '/ usr / bin / javac' Header header prep .: '/ usr / bin / javah'
cpp flags: '-I / usr / lib / jvm / java-1.7.0-openjdk-1.7.0.9.x86_64 / jre /../ include -
I / USR / Library / JVM / Java-1.7.0-OpenJDK-1.7.0.9.x86_64 / JRE /../ include / Linux "
java libs: '-L / usr / lib / jvm / java-1.7.0-openjdk-1.7.0.9.x86_64 / jre / lib / amd64 / se
rver -ljvm 'Check for compilation of JNI programs ... yes Check for JNI data types ... configure: error: One or more JNI types are different from the corresponding native type. You may need to use custom compiler flags or
another compiler to fix this.
ERROR: configuration failure for package 'rJava'
* removal of '/home/me/R-3.0.1/library/rJava'
====================================
Since I can remotely access the server, I do not have write access to anything outside my home directory / home / me.
Any information would be highly appreciated!
java r jni rjava
Ziqi
source share