[R] littler and rJava
John Laing
john.laing at gmail.com
Mon Aug 27 15:07:55 CEST 2012
Hello list,
I'm having some difficulty getting rJava to load in littler. Even
after a R CMD javareconf and a reinstall of littler, I get this:
jlaing at xenon:~$ r -e "require(rJava)"
Loading required package: rJava
Loading required package: methods
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object
'/usr/local/lib/R/site-library/rJava/libs/rJava.so':
libjvm.so: cannot open shared object file: No such file or directory
It works fine with Rscript:
jlaing at xenon:~$ Rscript -e "require(rJava)"
Loading required package: rJava
Loading required package: methods
Presumably my load paths are misconfigured, but I can't figure out where:
jlaing at xenon:~$ R CMD javareconf
Java interpreter : /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java
Java version : 1.6.0_24
Java home path : /usr/lib/jvm/java-6-openjdk-amd64/jre
Java compiler : /usr/lib/jvm/java-6-openjdk-amd64/jre/../bin/javac
Java headers gen.: /usr/lib/jvm/java-6-openjdk-amd64/jre/../bin/javah
Java archive tool: /usr/lib/jvm/java-6-openjdk-amd64/jre/../bin/jar
Java library path:
$(JAVA_HOME)/lib/amd64/server:$(JAVA_HOME)/lib/amd64:$(JAVA_HOME)/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
JNI linker flags : -L$(JAVA_HOME)/lib/amd64/server
-L$(JAVA_HOME)/lib/amd64 -L$(JAVA_HOME)/../lib/amd64
-L/usr/java/packages/lib/amd64 -L/usr/lib/x86_64-linux-gnu/jni
-L/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib/jni
-L/lib -L/usr/lib -ljvm
JNI cpp flags : -I$(JAVA_HOME)/../include
System info:
jlaing at xenon:~$ R --version
R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows"
Copyright (C) 2012 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-pc-linux-gnu (64-bit)
jlaing at xenon:~$ r --version
r ('littler') version 0.1.5
svn revision 185 as of 2011-09-17 09:35:56
built at 15:30:55 on Sep 17 2011
using GNU R Version 2.13.1 (2011-07-08)
Copyright (C) 2006 - 2011 Jeffrey Horner and Dirk Eddelbuettel
Thanks,
John
More information about the R-help
mailing list