[Rd] Install R 2.14 From Source : lattice Error
Simon Urbanek
simon.urbanek at r-project.org
Thu Jun 9 18:42:40 CEST 2011
On Jun 9, 2011, at 3:00 AM, Dario Strbenac wrote:
> 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
>
Yes, but it's the wrong file.
> What should I try next ?
>
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
More information about the R-devel
mailing list