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:> Error in dyn.load(x, as.logical(local), as.logical(now)) : > unable to load shared library '/usr/lib64/R/library/rJava/libs/rJava.so': > libjvm.so: kan inte ?ppna delad objektfil: Filen eller katalogen finns inte > Error in library("rJava") : .First.lib failed for 'rJava'I desperately tried to symlink libjvm.so from> /usr/lib64/jvm/java-1.5.0-sun-1.5.0_07/jre/lib/amd64/serverto> /usr/lib64/R/library/rJava/libsbut without success. Any suggestions appreciated! Regards, Tomas
Tomas Willebrand <tomas.willebrand <at> szooek.slu.se> writes:> > 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: > > Error in dyn.load(x, as.logical(local), as.logical(now)) : > > unable to load shared library '/usr/lib64/R/library/rJava/libs/rJava.so': > > libjvm.so: kan inte ?ppna delad objektfil: Filen eller katalogen finns inte > > Error in library("rJava") : .First.lib failed for 'rJava' >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