[R-SIG-Mac] Error while loading packages R 2.14.0

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Nov 13 08:30:50 CET 2011


On Sun, 13 Nov 2011, Riccardo Romoli wrote:

> Hi, I have already installed R 2.14.0 and I have some problem to load several 
> packages, in particular xcms package. I installed it directly from the GUI 
> and when I try to load it the R I have:
>
>> library(xcms)
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
> unable to load shared object 
> '/Users/riccardoromoli/Library/R/2.14/library/xcms/libs/x86_64/xcms.so':
> dlopen(/Users/riccardoromoli/Library/R/2.14/library/xcms/libs/x86_64/xcms.so, 
> 6): Library not loaded: /usr/local/lib/libnetcdf.7.dylib
> Referenced from: 
> /Users/riccardoromoli/Library/R/2.14/library/xcms/libs/x86_64/xcms.so
> Reason: image not found
> Inoltre: Warning message:
> In library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = 
> lib.loc) :
> there is no package called ‘digest’
> Errore: package/namespace load failed for ‘xcms’
>> 
>
> I think the error is the absence of ibnetcdf.7.dylib. Do you have any idea 
> how can I correct this error??

1) Ask BioC to build the package correctly, or
2) Build from the sources yourself, preferably using a static netcdf 
library.

People should not be distributing Mac binary packages with hardcoded 
paths to dependencies not in the R framework: CRAN does not.  In 
particular, /usr/local/lib need administrative privileges to populate.

>
> Best
>
> Riccardo
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


More information about the R-SIG-Mac mailing list