On Sep 17, 2010, at 11:25 PM, Simon Urbanek wrote: > > On Sep 17, 2010, at 5:02 PM, Agustin Diez Castillo wrote: > >> gdal-config is in my path > > apparently it's not for R otherwise you would not see that error (hint: > .profile and others are NOT loaded by LS). As the error message suggests you > can also provide the full path using --with-gdal-config - have you tried > that? Yes I did with the same result. But now I realized that
R CMD INSTALL rgdal_0.6-28.tar.gz --configure-args='--with-gdal-config=/Library/Frameworks/GDAL.framework/Versions/1.7/Programs/gdal-config --with-proj-lib=/Library/Frameworks/PROJ.framework/Versions/4.61/unix/lib --with-proj-include=/Library/Frameworks/PROJ.framework/Versions/4.61/Headers' doesn't found any C compiler so something is wrong in my system (I'm downloading xcode). * installing to library ‘/Library/Frameworks/R.framework/Resources/library’ * installing *source* package ‘rgdal’ ... gdal-config: /Library/Frameworks/GDAL.framework/Versions/1.6/Programs/gdal-config /Library/Frameworks/R.framework/Resources/bin/config: line 143: make: command not found /Library/Frameworks/R.framework/Resources/bin/config: line 144: make: command not found /Library/Frameworks/R.framework/Resources/bin/config: line 220: make: command not found /Library/Frameworks/R.framework/Resources/bin/config: line 143: make: command not found /Library/Frameworks/R.framework/Resources/bin/config: line 144: make: command not found /Library/Frameworks/R.framework/Resources/bin/config: line 220: make: command not found checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. ERROR: configuration failed for package ‘rgdal’ * removing ‘/Library/Frameworks/R.framework/Resources/library/rgdal’ > > Cheers, > Simon > > > >> I'm on 10.6.4 >> I've tried both at system and at user level with the same result. >> ¿Any suggestions? >> >> ERROR: configuration failed for package ‘rgdal’ >> * removing ‘/Users/adiez/Library/R/2.10/library/rgdal’ >> >> The downloaded packages are in >> >> ‘/private/var/folders/cv/cvYrUrtiEiuTpxH6VannjU+++TI/-Tmp-/Rtmp4GLVOJ/downloaded_packages’ >> * 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 >> ‘/Library/Frameworks/R.framework/Versions/2.10/Resources/library/rgdal’ >> _______________________________________________ >> R-SIG-Mac mailing list >> R-SIG-Mac@stat.math.ethz.ch >> https://stat.ethz.ch/mailman/listinfo/r-sig-mac >> >> > > _______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac