Skip to content

Install R 2.14 From Source : lattice Error

2 messages · Dario Strbenac, Simon Urbanek

#
I'm installing the latest development version of R on Ubuntu 10.04 

Revision: 56096
Last Changed Date: 2011-06-08

and the make command runs for a while, then I get :

** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/usr/local/lib64/R/library/lattice/libs/lattice.so':
  libR.so: cannot open shared object file: No such file or directory
Error : package 'lattice' could not be loaded
Error: loading failed
Execution halted

I'm not sure why it is referring to a file in /usr/local since I did 
./configure --prefix=/home/darstr/tmp/R-devel
before make.

Also, the file mentioned in the error exists and is readable.
$ ls -l /usr/local/lib64/R/library/lattice/libs/lattice.so
-rwxr-xr-x 1 root root 31813 2011-06-07 13:17 /usr/local/lib64/R/library/lattice/libs/lattice.so

What should I try next ?

--------------------------------------
Dario Strbenac
Research Assistant
Cancer Epigenetics
Garvan Institute of Medical Research
Darlinghurst NSW 2010
Australia
#
On Jun 9, 2011, at 3:00 AM, Dario Strbenac wrote:

            
Yes, but it's the wrong file.
You're apparently using the wrong R and/or have packages from different R installations around. The lattice you see is from another R that was compiled with --enable-R-shlib while you configured R without it so they are incompatible. Make sure you installed your compiled R properly and don't mix packages between the R installations (see .libPaths() in R).

Cheers,
Simon