[R] Installation of rJava package fails
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Feb 5 17:26:30 CET 2013
R_BadLongVector is an entry point in 64-bit R-devel (pre-3.0.0). It
seems something got installed under the wrong version of R.
I'd also be concerned about your Java version. 1.6.0_18 is very old and
there are security alerts on old Java versions, even those from last month.
On 05/02/2013 13:57, Loesch, Uta Maria wrote:
> 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():
> R version 2.15.2 (2012-10-26)
> Platform: x86_64-suse-linux-gnu (64-bit)
>  C
> attached base packages:
>  stats graphics grDevices utils datasets methods base
> loaded via a namespace (and not attached):
>  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
> 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!
> 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
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help