Actually, more alternatives: 3. Suggested by Ralf Strasse: Install Xcode tools from Apple (is recommended anyway for many applications). This will install several compilers.Afterwards installing from source should work fine. http://developer.apple.com/technologies/tools/xcode.html And also select on CRAN under Mac OS X installation "Tools" and installe gfortran (and the other two - you may need them another time). 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")
4. Downloading binary from kyngchaos http://www.kyngchaos.com/software/frameworks?s[]=rgdal and installing with install.packages("~/Downloads/rgdal-0.6.29-1.zip") (I'm guessing the directory, is this the downloading directory by default in Macs?) Any advice on which one is the best alternative? Thanks Agus 2010/12/23 Agustin Lobo <alobolis...@gmail.com>: > Dea all, > > Quite a number of students will be using MAC for a course in which we > will make use > of rgdal and raster. As I do not have an easy access to MAC machines > and I've found quite > a number of different options, I'm seeking some clarifications. > > Students will have gdal and other dependencies installed from > kyngchaos as they should have QGIS installed. > Under these circumstances, which alternative is better: > > 1. As suggested by Roger in > http://r-sig-geo.2731867.n2.nabble.com/rgdal-on-MAC-td5073766.html >> setRepositories(ind=1:2) >> install.packages('rgdal') > > 2. Install rgdal from source. > 2.1. As stated at the end of > http://spatialanalysis.co.uk/2010/11/02/installing-rgdal-on-mac-os-x/ >> R CMD INSTALL > –configure-args=”–with-gdal-config=/Library/Frameworks/GDAL.framework/unix/bin/gdal-config > –with-proj-lib=/Library/Frameworks/PROJ.framework/unix/lib > –with-proj-include=/Library/Frameworks/PROJ.framework/unix/include” > rgdal_0.6-20.tar.gz > 2.2. Using homebrew: > brew install gdal > R CMD INSTALL –configure-args=’–with-proj-include=/usr/local/lib’ > rgdal_0.6-28.tar.gz > (in this case, is the brew command using the kyngchaos gdal?) > > 3. Other alternatives > > Thanks > > Agus > _______________________________________________ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo