i using red hat 5, , unable install rjava
package
i ran following command:
$ r cmd javareconf -e
i following error:-
trying compile , link jni program detected jni cpp flags :
detected jni linker flags :
gcc -m64 -std=gnu99 -i/usr/include/r -dndebug -i/usr/local/include
-fpic -o2 -g -pipe -wall -wp,-d_fortify_source=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpic -fpic -c conftest.c -o conftest.oconftest.c:1:17: fatal error: jni.h: no such file or directory
compilation terminated.
make: *** [conftest.o] error 1
unable compile jni program
java -version below:-
java version "1.8.0_91"
java(tm) se runtime environment (build 1.8.0_91-b14)
java hotspot(tm) 64-bit server vm (build 25.91-b14, mixed mod
java_home = /usr/java/jdk1.8.0_91/jre
can please me compile jni program
i had similar problem on ubuntu. identify file missing
find / -name jni.h 2> /dev/null
probably
/usr/lib/jvm/java-8-openjdk-amd64/include
you might missing jni_md.h, run below, paths corrected ones identified above.
r cmd javareconf java_cppflags="-i/usr/lib/jvm/java-8-openjdk-amd64/include -i/usr/lib/jvm/java-8-openjdk-amd64/include/linux/"