[R-sig-Geo] Rgdal on Mac OSx
Roger Bivand
Roger.Bivand at nhh.no
Sat Jun 23 14:36:43 CEST 2012
On Sat, 23 Jun 2012, Ralf Schäfer wrote:
> Dear Brad,
> have you tried to install rgdal from CRAN extras?
>
> setRepositories(ind=1:2)
> install.packages("rgdal")
Or even, thanks to Simon Urbanek, from CRAN or your preferred CRAN mirror
(since early this morning CEST)? Simon has very generously provided
facilities for building within CRAN, so that we hope that we will be able
to retire the CRAN Extras binaries once we are sure that things function
as they should.
For OSX users needing drivers not provided in the CRAN build, the option
of using the Kyngchaos frameworks remains; the CRAN binary is statically
linked and self-contained, but has effectively only a similar set of
drivers to the CRAN Windows binary package.
Roger
>
> Best regards
> Ralf
>
>
>
>> Message: 12
>> Date: Fri, 22 Jun 2012 15:36:54 -0400
>> From: Brad Horn <bxhorn at gmail.com>
>> To: r-sig-geo at r-project.org
>> Subject: [R-sig-Geo] Rgdal install Mac OS X
>> Message-ID: <FF199A91-C862-4518-A14B-266C7E895D9D at gmail.com>
>> Content-Type: text/plain; charset=windows-1252
>>
>> I have attempted to install rgdal on OS X, and tried several approaches, but to no avail. Any help is appreciated.
>>
>> Here are the machine and R-version particulars:
>> - Mac OS X 10.6.8
>> - R version 2.15.0 (2012-03-30) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
>>
>> I installed the Kyngchaos GDAL binaries (GDAL 1.9 Complete [33.6 MiB] Snow Leopard & Lion 2012-6-21) along with the associated Kyngchaos rgdal binary (rgdal_0.7-11.tgz). Per the readme instructions for each component of GDAL, I then updated and sourced my .bash_profile file as follows:
>>
>> export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH
>> export PATH=/Library/Frameworks/PROJ.framework/Programs:$PATH
>> export PATH=/Library/Frameworks/SQLite3.framework/Programs:$PATH
>> export PATH=/Library/Frameworks/UnixImageIO.framework/Programs:$PATH
>> export PATH=/Library/Frameworks/GEOS.framework/Programs:$PATH
>>
>> The installation of the rgdal into RStudio appears to have worked, as I have access to all help documentation. Unfortunately, rgdal does not appear to link properly to associated executables and ultimately fails to load into the workspace, as confirmed below:
>>
>> library("rgdal")
>> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>> unable to load shared object '/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rgdal/libs/x86_64/rgdal.so':
>> dlopen(/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rgdal/libs/x86_64/rgdal.so, 6): Library not loaded: /Library/Frameworks/UnixImageIO.framework/Versions/D/UnixImageIO
>> Referenced from: /Library/Frameworks/SQLite3.framework/Versions/3/SQLite3
>> Reason: image not found
>> Error: package/namespace load failed for ?rgdal?
>>
>> Has anyone seen this issue? Ive searched prior r-sig-geo postings, but no solution appears to work. Any help is appreciated
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
--
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no
More information about the R-sig-Geo
mailing list