[R-sig-Geo] Rgdal install Mac OS X

Brad Horn bxhorn at gmail.com
Fri Jun 22 21:36:54 CEST 2012


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



More information about the R-sig-Geo mailing list