Dear users,
When trying to install packages in R, I get the following error. Would be great if you could help me out here.
" configure: error: One or more Java configuration variables are not set.
Make sure R is configured with full Java support (including JDK). Run
R CMD javareconf
as root to add Java support to R."
I think it has something to do with the compiler, but I am not sure. When running R CMD javareconf in root mode, I get the following information. Any suggestions on how to fix this?
"R CMD javareconf
Java interpreter : /usr/lib64/jvm/java/jre/bin/java
Java version : 1.5.0
Java home path : /usr/lib64/jvm/java
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/crt1.o: In function `_start':
/home/abuild/rpmbuild/BUILD/glibc-2.18/csu/../sysdeps/x86_64/start.S:118: undefined reference to `main'
collect2: error: ld returned 1 exit status
Java compiler : not functional
Java headers gen.: /usr/lib64/jvm/java/bin/javah
Java archive tool: /usr/lib64/jvm/java/bin/jar
trying to compile and link a JNI progam
detected JNI cpp flags :
detected JNI linker flags : -L/usr/lib64/../lib64/gcj-4.8-14 -ljvm
gcc -std=gnu99 -I/usr/lib64/R/include -DNDEBUG -I/usr/local/include -fpic -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -c conftest.c -o conftest.o
gcc -std=gnu99 -shared -L/usr/local/lib64 -o conftest.so conftest.o -L/usr/lib64/../lib64/gcj-4.8-14 -ljvm -L/usr/lib64/R/lib -lR
JAVA_HOME : /usr/lib64/jvm/java
Java library path: /usr/lib64/../lib64/gcj-4.8-14
JNI cpp flags :
JNI linker flags : -L/usr/lib64/../lib64/gcj-4.8-14 -ljvm
Updating Java configuration in /usr/lib64/R"
Many thanks in advance!!
When trying to install packages in R, I get the following error. Would be great if you could help me out here.
" configure: error: One or more Java configuration variables are not set.
Make sure R is configured with full Java support (including JDK). Run
R CMD javareconf
as root to add Java support to R."
I think it has something to do with the compiler, but I am not sure. When running R CMD javareconf in root mode, I get the following information. Any suggestions on how to fix this?
"R CMD javareconf
Java interpreter : /usr/lib64/jvm/java/jre/bin/java
Java version : 1.5.0
Java home path : /usr/lib64/jvm/java
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/crt1.o: In function `_start':
/home/abuild/rpmbuild/BUILD/glibc-2.18/csu/../sysdeps/x86_64/start.S:118: undefined reference to `main'
collect2: error: ld returned 1 exit status
Java compiler : not functional
Java headers gen.: /usr/lib64/jvm/java/bin/javah
Java archive tool: /usr/lib64/jvm/java/bin/jar
trying to compile and link a JNI progam
detected JNI cpp flags :
detected JNI linker flags : -L/usr/lib64/../lib64/gcj-4.8-14 -ljvm
gcc -std=gnu99 -I/usr/lib64/R/include -DNDEBUG -I/usr/local/include -fpic -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -c conftest.c -o conftest.o
gcc -std=gnu99 -shared -L/usr/local/lib64 -o conftest.so conftest.o -L/usr/lib64/../lib64/gcj-4.8-14 -ljvm -L/usr/lib64/R/lib -lR
JAVA_HOME : /usr/lib64/jvm/java
Java library path: /usr/lib64/../lib64/gcj-4.8-14
JNI cpp flags :
JNI linker flags : -L/usr/lib64/../lib64/gcj-4.8-14 -ljvm
Updating Java configuration in /usr/lib64/R"
Many thanks in advance!!