Regarding Installation of rJava on linux fedora

227 views
Skip to first unread message

sandy

unread,
May 10, 2012, 1:34:55 AM5/10/12
to Bangalore R Users - BRU, bhupathi...@tcs.com, ab.see...@tcsin.com
Hi All,

I am trying to install rJava on fedora 14 and R 2.13.1, the
rJava_0.9-3.tar.gz is the tarball I am using, and it is throwing me
this error :

java libs : '-L/usr/java/jdk1.6.0_26/jre/lib/i386/client -L/usr/java/
jdk1.6.0_26/jre/lib/i386 -L/usr/java/jdk1.6.0_26/jre/../lib/i386 -L/
usr/java/packages/lib/i386 -L/lib -L/usr/lib -ljvm'
checking whether JNI programs can be compiled... yes
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â
* removing â/usr/local/lib/R/library/rJavaâ
* restoring previous â/usr/local/lib/R/library/rJavaâ


Logs :


[root@01HW044544 r-lib]# R CMD INSTALL rJava_0.9-3.tar.gz
* installing to library â/usr/local/lib/R/libraryâ
* installing *source* package ârJavaâ ...
checking for gcc... gcc -std=gnu99
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether time.h and sys/time.h may both be included... yes
configure: checking whether gcc -std=gnu99 supports static inline...
yes
checking whether setjmp.h is POSIX.1 compatible... yes
checking whether sigsetjmp is declared... yes
checking whether siglongjmp is declared... yes
checking Java support in R... present:
interpreter : '/usr/java/jdk1.6.0_26/jre/bin/java'
archiver : '/usr/java/jdk1.6.0_26/bin/jar'
compiler : '/usr/java/jdk1.6.0_26/bin/javac'
header prep.: '/usr/java/jdk1.6.0_26/bin/javah'
cpp flags : '-I/usr/java/jdk1.6.0_26/include -I/usr/java/jdk1.6.0_26/
include/linux'
java libs : '-L/usr/java/jdk1.6.0_26/jre/lib/i386/client -L/usr/java/
jdk1.6.0_26/jre/lib/i386 -L/usr/java/jdk1.6.0_26/jre/../lib/i386 -L/
usr/java/packages/lib/i386 -L/lib -L/usr/lib -ljvm'
checking whether JNI programs can be compiled... yes
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â
* removing â/usr/local/lib/R/library/rJavaâ
* restoring previous â/usr/local/lib/R/library/rJavaâ

My Java Home is set to :


[root@01HW044544 r-lib]# $JAVA_HOME
-bash: /usr/java/jdk1.6.0_26/: is a directory

[root@01HW044544 r-lib]# $JAVA_HOME
-bash: /usr/java/jdk1.6.0_26/: is a directory
[root@01HW044544 r-lib]# R CMD javareconf -ed
Java interpreter : /usr/java/jdk1.6.0_26//jre/bin/java
Java version : 1.6.0_26
Java home path : /usr/java/jdk1.6.0_26/
Java compiler : /usr/java/jdk1.6.0_26//bin/javac
Java headers gen.: /usr/java/jdk1.6.0_26//bin/javah
Java archive tool: /usr/java/jdk1.6.0_26//bin/jar
Java library path: $(JAVA_HOME)jre/lib/i386/client:$(JAVA_HOME)jre/lib/
i386:$(JAVA_HOME)jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/
lib
JNI linker flags : -L$(JAVA_HOME)jre/lib/i386/client -L$(JAVA_HOME)jre/
lib/i386 -L$(JAVA_HOME)jre/../lib/i386 -L/usr/java/packages/lib/i386 -
L/lib -L/usr/lib -ljvm
JNI cpp flags : -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux

Updating Java configuration in /usr/local/lib/R
Done.

Please help me out with this issue.
Reply all
Reply to author
Forward
0 new messages