Re: [Rd] Install R 2.14 From Source : lattice Error

From: Simon Urbanek <simon.urbanek_at_r-project.org>
Date: Thu, 09 Jun 2011 12:42:40 -0400

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



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 09 Jun 2011 - 16:45:12 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 09 Jun 2011 - 17:20:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive