[R] Installation of rJava package fails

Loesch, Uta Maria uta.maria.loesch at sap.com
Tue Feb 5 14:57:02 CET 2013


Hi,

I am trying to install the rJava package in a Linux environment (Platform: x86_64-suse-linux-gnu (64-bit)), where I am facing an issue which I cannot solve so far and where I could require some help:

The installation seems to go fine, however in the last step of the installation where loading the package is tested, the process fails with the following error:
** testing if installed package can be loaded
Error : .onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/usr/lib64/R/library/rJava/libs/rJava.so':
  /usr/lib64/R/library/rJava/libs/rJava.so: undefined symbol: R_BadLongVector
Error: loading failed
Execution halted
ERROR: loading failed
* removing '/usr/lib64/R/library/rJava'

I have attached the complete output of the installation process.

Here is the output of sessionInfo():
> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-suse-linux-gnu (64-bit)

locale:
[1] C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] tools_2.15.2


and of javareconf:
R CMD javareconf
Java interpreter : /usr/sap/jdk1.6.0_18//jre/bin/java
Java version     : 1.6.0_18
Java home path   : /usr/sap/jdk1.6.0_18/
Java compiler    : /usr/sap/jdk1.6.0_18//bin/javac
Java headers gen.: /usr/sap/jdk1.6.0_18//bin/javah
Java archive tool: /usr/sap/jdk1.6.0_18//bin/jar
Java library path: /usr/sap/jdk1.6.0_18/jre/lib/amd64/server:/usr/sap/jdk1.6.0_18/jre/lib/amd64:/usr/sap/jdk1.6.0_18/jre/../lib/amd64::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
JNI linker flags : -L/usr/sap/jdk1.6.0_18/jre/lib/amd64/server -L/usr/sap/jdk1.6.0_18/jre/lib/amd64 -L/usr/sap/jdk1.6.0_18/jre/../lib/amd64 -L -L/usr/java/packages/lib/amd64 -L/usr/lib64 -L/lib64 -L/lib -L/usr/lib -ljvm
JNI cpp flags    : -I/usr/sap/jdk1.6.0_18//include -I/usr/sap/jdk1.6.0_18//include/linux

Updating Java configuration in /usr/lib64/R
Done.

To me, the paths seem fine, an internet search did not deliver any results. Any suggestions how to proceed on the problem?
What is the R_BadLongVector? I could not find any information wrt. that online.

Thanks in advance for your help!
Uta


Dr. Uta Lösch
Co-Innovation Development
TIP Customer Engagement & Strategic Projects
SAP AG
Dietmar-Hopp-Allee 16
69190 Walldorf, Germany
T +49 6227 7-46995

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rJavaInstall.txt
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130205/331f92b2/attachment.txt>


More information about the R-help mailing list