Skip to content

JGR on SUSE 10.1 AMD 64

5 messages · Rainer Volz, Brian Ripley, Tomas Willebrand

#
Dear list;

I have R Version 2.3.1 (2006-06-01) installed on a AMD 64 machine with SUSE 
10.1. 

I have Sun Java version 1.5.0-sun installed. 

I have used "install.packages("JGR", dep=TRUE) to install rJava, iplots and 
JGR. I would like to do a presentation of linux and R for the department!

Compiling rJava do not give any error messages!

But when trying to load library("JGR") or just library("rJava") I get the 
following error message:
I desperately tried to symlink libjvm.so from
to
but without success.

Any suggestions appreciated!

Regards,

Tomas
1 day later
#
Tomas Willebrand <tomas.willebrand <at> szooek.slu.se> writes:
I have the same configuration: adding various library paths for the 
missing libs before calling R made the installation succeed:

export
LD_LIBRARY_PATH=/usr/lib64/R/lib:
/usr/lib64/jvm/java-1.5.0-sun-1.5.0_07/jre/lib/amd64/server:
/usr/lib64/jvm/java-1.5.0-sun-1.5.0_07/jre/lib/amd64:
$LD_LIBRARY_PATH
   

HTH
Rainer
#
On Sun, 10 Sep 2006, Rainer Volz wrote:

            
Installed how is the usual question: from sources or an RPM?
This is something that is set up when R is configured, and stored in 
R_HOME/etc/ldpaths.  Has perchance your Java subsystem been updated since 
R was installed?  In which case update R_HOME/etc/ldpaths as appropriate, 
or set R_JAVA_LD_LIBRARY_PATH (not LD_LIBRARY_PATH) to override the 
setting there.
#
Prof Brian Ripley <ripley <at> stats.ox.ac.uk> writes:
True.
That's much better. Thank you.
#
Prof Ripley and Rainer;

Thanks for the help. 

I changed the file "/usr/lib64/R/etc/ldpaths" so that the first line looked 
like

:${R_JAVA_LD_LIBRARY_PATH= 
/usr/lib64/jvm/java-1.5.0-sun-1.5.0_07/jre/lib/amd64/server:
/usr/lib64/jvm/java-1.5.0-sun-1.5.0_07/jre/lib/amd64:} 

and then everything worked OK!

But when I tested a fresh install of the R-base*rpm and changed the ldpaths 
file before attempting to install JGR it did not install properly!! Not the 
same error as previously when iplots was suppose to load! (ldpaths identical 
in both cases)

-- Install R-base -> failed installation of rJava -> edit ldpaths -> reinstall 
rJava,iplots, JGR -> SUCCESS

-- Install R-base -> edit ldpaths -> loading rJava fails after compiling  
-> ????

Not sure what is going on and do not need to know! 
But maybe someone would find this note useful.

Thanks again

Tomas



s?ndag 10 september 2006 14:02 skrev Rainer Volz: