Re: [R] Installing rJava fails

2011-03-24 Thread jcheng liu
Dear Orvalho Augusto, Thanks for your response. But we met a new problem. We set as waht you said in the last email and run installing agian. But we got the error: rJava.h:22:17: error: jni.h: No such file or directory. Actually we had found "jni.h" under {JAVA_HOME}/../include and the path had be

Re: [R] Installing rJava fails

2011-03-18 Thread Orvalho Augusto
It seems that you are not alone with that error ( http://stackoverflow.com/questions/3311940/r-rjava-package-install-failing). Defining only JAVA_HOME he would find everything else. Backup your /etc/R before do this. Running the R CMD javareconf is to place variables like this in /etc/R/Makecon

Re: [R] Installing rJava fails

2011-03-18 Thread jcheng liu
Dear Orvalho Augusto, Thank so much for you response! We had run R CMD javareconf -e, and even R CMD javareconf in administrator. Actually, we had install the JDK. And in the output, only the item of JNI cpp flages could not be detected(I listed output below). What does the item mean? What need we

Re: [R] Installing rJava fails

2011-03-18 Thread Orvalho Augusto
Run R CMD javareconf -e as the being suggest by the output. That will try to guess where is Java. Or you can install the JDK_HOME and JAVA_HOME variables. Good luck. Caveman On Fri, Mar 18, 2011 at 4:39 PM, jcheng liu wrote: > Dear all, > Installing rJava fails. The message was listed below.

[R] Installing rJava fails

2011-03-18 Thread jcheng liu
Dear all, Installing rJava fails. The message was listed below. I wonder why cpp flag could not be detected, although I had installed. Thanks!!! -Jiacheng R CMD INSTALL rJava_0.9-0.tar.gz * installing to library ‘/data1/mri_researchers/wexler_data/jiacheng/R-2.12.0/library’ * installing *source* p

Re: [R] Installing rJava fails on Gentoo (amd64) with Sun JDK - checking JNI data types... error

2010-09-06 Thread Helgi Tomasson
Try the following: as super-user java-config -L java-config -S (put a number pointing to sun-jdk-1.6) R CMD javareconf export JAVA_HOME=/usr/lib/jvm/sun-jdk-1.6/jre export R_JAVA_LD_LIBRARY_PATH=${JAVA_HOME}/lib/amd64/server: ${JAVA_HOME}/lib/amd64: ${JAVA_HOME}/../lib/amd64::/usr/java/packa

[R] Installing rJava fails on Gentoo (amd64) with Sun JDK - checking JNI data types... error

2010-08-13 Thread Anthony Staines
Installing rJava fails consistently, whether installed via the command line as below, or through "install.packages( 'rJava' )", and whether 0.84 or 0.85 is used, with the message :- "checking JNI data types... configure: error: One or more JNI types differ from the corresponding native type. You ma