Skip to content

rgdal on Mac OS X 10.6.7

3 messages · Roger Bivand, Ralf Schäfer

#
Dear list,

I tried to install rgdal in R 2.13.0 on Mac OS X 10.6.7 but it keeps failing no matter if I install from source or binary.

I get the following error message:
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  kann shared object '/Users/ralfs/Library/R/2.13/library/rgdal/libs/x86_64/rgdal.so' nicht laden:
  dlopen(/Users/ralfs/Library/R/2.13/library/rgdal/libs/x86_64/rgdal.so, 6): Symbol not found: _GetPrivateProfileString
  Referenced from: /usr/lib/libiodbc.2.dylib
  Expected in: flat namespace

System info:
R version 2.13.0 Patched (2011-04-14 r55450)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

Any idea how to fix this - is obviously somehow related to the iodbc driver or sth...

Thanks in advance
Ralf
#
On Wed, 25 May 2011, Ralf Sch?fer wrote:

            
You have not said how you installed rgdal - CRAN extras binary, Kyngchaos 
binary on Kyngchaos frameworks, source install on Kyngchaos frameworks, or 
source on GDAL source build.

The dependency is not from rgdal directly, but rather from GDAL as loaded 
by rgdal.

The standard OSX install is to use the binary package directly, by 
ensuring that the CRAN extras repository is being searched:

setRepositories(ind=1:2)
install.packages("rgdal")

This installs rgdal independently of any GDAL on your platform, just like 
the Windows binary package. Only standard GDAL/OGR drivers are available. 
This is probably not what you did, because any GDAL on your machine and 
rgdal do not interact.

If more drivers are needed, install the Kyngchaos frameworks, then the 
Kyngchaos rgdal binary. The Kyngchaos GDAL build determines the available 
drivers.

Equivalently, but with the full Xcode/R build train installed, you can 
install from source on top of the Kyngchaos frameworks. Source or binary 
installs interact with the Kyngchaos framework GDAL, so the same problem 
should occur in other applications loading GDAL.

Roger

  
    
#
Dear Roger

Am 25.05.2011 um 07:27 schrieb Roger Bivand:
I installed from Kyngchaos binary and and when this failed from source on the kyngchaos frameworks. I actually updated to the GDAL framework 1.8 from kyngchaos.
However, it works on my Mac Pro in the office - so is obviously an issue with some iodb drivers
That works - thanks!
Ralf