[R-sig-Debian] problems building and installing some packages in 'unstable'

Douglas Bates bates at stat.wisc.edu
Sun Jan 27 18:44:47 CET 2008


Check if the file $R_HOME/lib/libRblas.so exists. If so, use

ldd $R_HOME/lib/libRblas.so

to see what further shared objects it needs.

Then check

ldd $R_HOME/library/KernSmooth/libs/KernSmooth.so

It probably has a reference to libRblas.so that is unresolved when you
check outside of R.  Part of the R startup adds $R_HOME/lib to the
LD_LIBRARY_PATH (see the shell script $R_HOME/etc/ldpaths or
$R_HOME/etc${ARCH}/ldpaths)

On Jan 27, 2008 10:21 AM, Dirk Eddelbuettel <edd at debian.org> wrote:
>
>
> On 27 January 2008 at 09:46, Sebastian P. Luque wrote:
> | Hi,
> |
> | I'm keeping a Debian unstable system, and recently found 2 problems:
> |
> | 1) building a package (R CMD build diveMove, available from CRAN)
> | depending on KernSmooth fails with:
> |
> | ---<---------------cut here---------------start-------------->---
> | Loading required package: KernSmooth
> | Error in dyn.load(file, ...) :
> |   unable to load shared library '/usr/lib/R/library/KernSmooth/libs/KernSmooth.so':
> |   libRblas.so: cannot open shared object file: No such file or directory
> | ---<---------------cut here---------------end---------------->---
> |
> | Needless to say, the package built fine until about 2 weeks ago and no
> | changes to the source have been made.
> |
> | 2) Installing a package (install.packages("tripEstimation")) requiring
> | mgcv fails with a similar message:
> |
> | ---<---------------cut here---------------start-------------->---
> | Loading required package: mgcv
> | Error in dyn.load(file, ...) :
> |   unable to load shared library '/usr/lib/R/library/mgcv/libs/mgcv.so':
> |   libRblas.so: cannot open shared object file: No such file or directory
> | ---<---------------cut here---------------end---------------->---
> |
> | Interestingly, the shared libraries (KernSmooth.so and mgcv.so) do exist
> | at the specified path.  However, libRblas.so is nowhere to be found.
> |
> | I've exchanged a few emails with Dirk Eddelbuettel, confirming that the
> | missing libRblas.so is expected in AMD64.
> |
> | Are others following 'unstable' in AMD64 having the same problem?
>
> For what it's worth, and given the brandnew sources on CRAN, I just updated
> the Debian packages
>         r-cran-vr               ## VR
>         r-cran-kernsmooth       ## KernSmooth
>         r-cran-sandwich         ## sandwich
>         r-cran-rodbc            ## RODBC
> in the 'pbuilder' chroot environment (ie a pristine Debian unstable setting
> with no manual configuration whatsoever).  No issues.
>
> So I have no idea where the desire to link with libRblas.so comes from, which
> I why I suggested to Seb to ask here. If anybody, in particular amd64 users
> of Debian unstable, has a clue, please share it with us.
>
> Thanks, Dirk
>
> --
> Three out of two people have difficulties with fractions.
>
>
> _______________________________________________
> R-SIG-Debian mailing list
> R-SIG-Debian at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-debian
>



More information about the R-SIG-Debian mailing list