[GRASS-user] R/GRASS GIS issue with rgdal

Thomas Adams Thomas.Adams at noaa.gov
Sat Apr 30 19:52:37 EDT 2011


  All:

Sorry for posting the way I have, but I am not really sure where to send 
this, as it is NOT a GRASS issue, really, but…

On a Mac running OS X 10.6.7, I have the following issue:

(1) I've loaded the GRASS GRASS-6.4.1-1-Snow.dmg from the KyngChaos Wiki
(2) GDAL Complete 1.8 framework package
(3) rgdal 0.6.33-1 - R 2.12 package
(4) installed R 2.13 Mac binary from CRAN

The curious thing is, if I try to load rgdal through the Mac R GUI, I get:

 > library(rgdal)
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object 
'/Library/Frameworks/R.framework/Versions/2.13/Resources/library/rgdal/libs/i386/rgdal.so':
dlopen(/Library/Frameworks/R.framework/Versions/2.13/Resources/library/rgdal/libs/i386/rgdal.so, 
6): Library not loaded: 
/Library/Frameworks/R.framework/Versions/2.12/Resources/lib/libR.dylib
Referenced from: 
/Library/Frameworks/R.framework/Versions/2.13/Resources/library/rgdal/libs/i386/rgdal.so
Reason: image not found
Error: package/namespace load failed for 'rgdal'


However, if I load rgdal in R through a Mac term window R prompt, life 
is good and I get:

 > library(rgdal)
Loading required package: sp
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.8.0, released 2011/01/12
Path to GDAL shared files: 
/Library/Frameworks/GDAL.framework/Versions/1.8/Resources/gdal
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009
Path to PROJ.4 shared files: (autodetected)

Now, I would -only- do GRASS/R stuff through the GRASS & R term window 
command line prompt anyway, but I find this difference perplexing.

Any thoughts?

Regards,
Tom

-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:	thomas.adams at noaa.gov

VOICE:	937-383-0528
FAX:	937-383-0033



More information about the grass-user mailing list