[R-sig-Geo] RGDAL

Ben Madin lists at remoteinformation.com.au
Tue Dec 21 13:11:34 CET 2010


Additionally, if you install GDAL and PROJ frameworks from kynchaos.com, there is also a rgdal package... very easy.

cheers

Ben


On 21/12/2010, at 10:54 PM, Ralf Schäfer wrote:

> Hi Daniel,
> 
> try in R:
> install.packages("rgdal", configure.args='--with-gdal-config=/Library/Frameworks/GDAL.Framework/Unix/bin/gdal-config --with-proj-include=/Library/Frameworks/PROJ.framework/unix/include-with-proj-lib=/Library/Frameworks/PROJ.framework/unix/lib/',dependencies=TRUE, type="source")
> 
> Of course you need to install the GDAL and PROJ framework before - if you install from kyngchaos they should be at the path given in the code above.
> 
> It works for me on 64-bit Macbook Pro and Mac Pro with R 2.12 
> 
> Beste Grüße,
> 
> Best regards,
> 
> Ralf Schäfer
> 
> ------------------------------------------------------------
> 
> Prof. Dr. rer. nat. Ralf Bernhard Schäfer
> Juniorprofessor Quantitative Landscape Ecology
> Environmental Scientist (M.Sc.)
> Institute for Environmental Sciences
> University Koblenz-Landau
> Forststrasse 7
> 76829 Landau
> Germany
> Mail: schaefer-ralf at uni-landau.de
> Phone: ++49 (0) 6341 280-31536
> Web: http://tinyurl.com/37ot8xq
> 
>> 
>>> ------------------------------
>>> 
>>> Message: 2
>>> Date: Mon, 20 Dec 2010 12:12:23 -0200
>>> From: Daniel <dmsilv at gmail.com>
>>> To: r-sig-geo at stat.math.ethz.ch
>>> Subject: [R-sig-Geo] RGDAL
>>> Message-ID:
>>> 	<AANLkTimaFnMeM3aCZFyomam78Kpjzbj89c4tEqKg=Bn3 at mail.gmail.com>
>>> Content-Type: text/plain
>>> 
>>> Dears,
>>> Anybody knows how can I solve the following error.
>>> 
>>> * installing *source* package Œrgdal‚ ...
>>> gdal-config: gdal-config
>>> ./configure: line 1311: gdal-config: command not found
>>> Error: gdal-config not found
>>> The gdal-config script distributed with GDAL could not be found.
>>> If you have not installed the GDAL libraries, you can
>>> download the source from  http://www.gdal.org/
>>> If you have installed the GDAL libraries, then make sure that
>>> gdal-config is in your path. Try typing gdal-config at a
>>> shell prompt and see if it runs. If not, use:
>>> --configure-args='--with-gdal-config=/usr/local/bin/gdal-config' echo with
>>> appropriate values for your installation.
>>> 
>>> ERROR: configuration failed for package Œrgdal‚
>>> * removing Œ/Users/dms/Library/R/2.12/library/rgdal‚
>>> * restoring previous Œ/Users/dms/Library/R/2.12/library/rgdal‚
>>> 
>>> The downloaded packages are in
>>> Œ/private/var/folders/GU/GU-nsrKmGteghFv3YFf1C++++TI/-Tmp-/RtmpqkhOBF/downloaded_packages‚
>>> 
>>> 
>>> I tried the following, but not worked:
>>> 
>>> daniel-marcelinos-macbook-pro:~ dms$
>>> --configure-args='--with-gdal-config=/usr/local/bin/gdal-config'
>>> -bash: -s: command not found
>>> 
>>> 
>>> 
>>> -- 
>>> Daniel Marcelino
>>> Skype: dmsilv
>>> http://marcelino.pbworks.com/
>>> 
>>> 	[[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



More information about the R-sig-Geo mailing list