[R-sig-Geo] MACOSX: rgdal cannot find GDAL

Agustin Lobo alobolistas at gmail.com
Mon Dec 27 20:32:22 CET 2010


Ralf,

2010/12/24 Ralf Schäfer <senator at ecotoxicology.de>:
> Hello,
> your download link referred to  another framework. Check whether you have
> really installed this one:
> GDAL 1.7 Complete
Sorry, my mistake, but  just at writing the link, I actually downloaded
the correct one:
http://www.kyngchaos.com/files/software/frameworks/GDAL_Complete-1.7.dmg

> Can you allocate the folder:
> /Library/Frameworks/GDAL.framework ????
Yes:
imac-de-agustin-lobo:Frameworks agustinlobo$ pwd
/Library/Frameworks
imac-de-agustin-lobo:Frameworks agustinlobo$ ls -l
total 0
drwxrwxrwx  5 root  wheel  170 10 sep  2008 Adobe AIR.framework
drwxrwxr-x  8 root  admin  272 21 dic 17:44 FreeType.framework
drwxrwxr-x  8 root  admin  272 24 dic 09:13 GDAL.framework
drwxrwxr-x  8 root  admin  272 24 dic 09:13 GEOS.framework
drwxrwxr-x  8 root  admin  272 21 dic 17:58 GSL.framework
drwxrwxr-x  8 root  admin  272 12 dic  2009 HPDeviceModel.framework
drwxrwxr-x  6 root  admin  204 12 dic  2009 HPPml.framework
drwxrwxr-x  7 root  admin  238 12 dic  2009 HPServicesInterface.framework
drwxrwxr-x  7 root  admin  238 12 dic  2009 HPSmartPrint.framework
drwxr-xr-x  5 1422  wheel  170 12 dic  2009 HPSmartX.framework
drwxr-xr-x  6 root  admin  204 27 ene  2010 MacFUSE.framework
drwxrwxr-x  8 root  admin  272 24 dic 09:13 PROJ.framework
drwxrwxr-x  8 root  admin  272 24 dic 08:59 R.framework
drwxrwxr-x  8 root  admin  272 24 dic 09:13 SQLite3.framework
drwxrwxr-x  8 root  admin  272 24 dic 09:13 UnixImageIO.framework
drwxrwxr-x  8 root  admin  272 21 dic 17:56 cairo.framework

This problem persists:
imac-de-agustin-lobo:GDAL.framework agustinlobo$ gdalinfo --version
-bash: gdalinfo: command not found

But actually, the R installation of rgdal works now. Could it be that
I needed to reboot after
installing GDAL? I'd like to clarify as I'm trying to write up directions:

> install.packages("/Users/agustinlobo/Downloads/rgdal/rgdal_0.6-29.tgz")
inferring 'repos = NULL' from the file name
> require(rgdal)
Loading required package: rgdal
Loading required package: sp
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.7.3, released 2010/11/10
Path to GDAL shared files:
/Library/Frameworks/GDAL.framework/Versions/1.7/Resources/gdal
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009
Path to PROJ.4 shared files: (autodetected)

>
> But you obviously fixed that already as I can read from the second post?!

No, those are different problems. The one I report here is the installation with
the rgdal provided in kyngchaos
http://www.kyngchaos.com/files/software/frameworks/rgdal-0.6.29-1.zip

The other one is the problem installing rgdal from CRAN repositories 1 and 2

I still do not know which one is to be preferred...

Agus



> Regards
> Ralf
>
>
>
> ------------------------------
>
> Message: 11
> Date: Fri, 24 Dec 2010 10:21:13 +0100
> From: Agustin Lobo <alobolistas at gmail.com>
> To: r-sig-geo <r-sig-geo at stat.math.ethz.ch>
> Subject: [R-sig-Geo] MACOSX: rgdal cannot find GDAL
> Message-ID:
> <AANLkTinnmh3tmCcv92+kcTHE6fmUEP6SqdZnc99af+da at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> After having installed GDAL Complete from
> http://www.kyngchaos.com/files/software/frameworks/GSL_Framework-1.14-1.dmg,
>
> I try gdalinfo but:
>
> imac-de-agustin-lobo:~ agustinlobo$ gdalinfo --version
> -bash: gdalinfo: command not found
>
> Also Spotlight cannot find but the uncompressed folder GDAL Complete,
> or any of the installed
> programs (i.e. gdalinfo or gdal-config)
>
> imac-de-agustin-lobo:~ agustinlobo$ gdal-config-bash: gdal-config:
> command not found
>
> Obviously, rgdal cannot find GDAL
>
> setRepositories(ind=1:2)
>
> install.packages("rgdal")
>
> --- Please select a CRAN mirror for use in this session ---
> probando la URL
> 'http://www.stats.ox.ac.uk/pub/RWin/bin/macosx/leopard/contrib/2.12/rgdal_0.6-31.tgz'
> Content type 'application/x-gzip' length 10203689 bytes (9.7 Mb)
> URL abierta
> ==================================================
> downloaded 9.7 Mb
>
>
> The downloaded packages are in
> /var/folders/iR/iRxOvaG9F10viNoa7WceNU+++TI/-Tmp-//RtmpLu8kR8/downloaded_packages
>
> require(rgdal)
>
> Loading required package: rgdal
> Loading required package: sp
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>  unable to load shared object
> '/Library/Frameworks/R.framework/Versions/2.12/Resources/library/rgdal/libs/i386/rgdal.so':
>  dlopen(/Library/Frameworks/R.framework/Versions/2.12/Resources/library/rgdal/libs/i386/rgdal.so,
> 6): Library not loaded: libR.dylib
>  Referenced from:
> /Library/Frameworks/R.framework/Versions/2.12/Resources/library/rgdal/libs/i386/rgdal.so
>  Reason: image not found
>
>
>



More information about the R-sig-Geo mailing list