[R-SIG-Mac] Problems loading rgeos and rgdal binary packages for Mavericks

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon May 12 15:51:54 CEST 2014


These were only tested with command-line R, and I did not know R.app 
(which I never use) was different.  Now fixed for use with R.app.

Thanks for the report.

On 12/05/2014 14:14, Agustín Diez Castillo wrote:
> Thanks a lot for that,
> Surely I did something wrong, if so disregard this. In the unlikely case I did it wright, I’m getting an error when trying to load either rgdal [1] or rgeos [2]
> [1]
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>    unable to load shared object '/Users/agus/Library/R/3.1/library/rgdal/libs/rgdal.so':
>    dlopen(/Users/agus/Library/R/3.1/library/rgdal/libs/rgdal.so, 6): Library not loaded: libR.dylib
>    Referenced from: /Users/agus/Library/R/3.1/library/rgdal/libs/rgdal.so
>    Reason: image not found
> Error: package or namespace load failed for ‘rgdal’
> [2]
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>    unable to load shared object '/Users/agus/Library/R/3.1/library/rgeos/libs/rgeos.so':
>    dlopen(/Users/agus/Library/R/3.1/library/rgeos/libs/rgeos.so, 6): Library not loaded: libR.dylib
>    Referenced from: /Users/agus/Library/R/3.1/library/rgeos/libs/rgeos.so
>    Reason: image not found
> Error: package or namespace load failed for ‘rgeos’
>
> sessionInfo()
> R version 3.1.0 Patched (2014-04-26 r65504)
> Platform: x86_64-apple-darwin13.1.0 (64-bit)
>
> locale:
> [1] en_US.UTF-8/UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> other attached packages:
> [1] sp_1.0-15
>
> loaded via a namespace (and not attached):
> [1] grid_3.1.0      lattice_0.20-29 tools_3.1.0
> On 12 May 2014, at 09:44, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
>
>> I have put statically-linked packages up on CRANxtras for the CRAN Mavericks distribution.  To use,
>>
>> setRepositories(ind = c(1,6))  # so you get the dependencies from CRAN
>> install.packages(c('rgeos', 'rgdal'))
>>
>> [It is nothing like so easy to do from the R.app menus.]
>>
>> rgdal is compiled against the latest GDAL 1.11.0 and has a good range of GDAL and OGR drivers compiled in.
>>
>> However, any packages which depend on these will need to compiled from source unless/until binaries are built for the main CRAN repository.
>>
>> --
>> 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
>>
>> _______________________________________________
>> 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