[R] rgdal on a Mac
Roger Bivand
Roger.Bivand at nhh.no
Thu Sep 7 19:47:04 CEST 2006
On Thu, 7 Sep 2006, Jonathan Boyd Thayn wrote:
> I am trying to install the rgdal package on my Mac OS X 3.9. I
> downloaded and installed the GDAL libraries from Fink and then tried to
> install rgdal and got the following message. I tried to determine if
> the GDAL libraries were in my path but I'm not sure how to do that.
> Any ideas? Thanks.
>
(The R-sig-geo mailing list may be a more appropriate place to look for an
answer)
Unfortunately, I as maintainer of the package have no access to OSX. I do
know that OSX users have installed rgdal successfully, and installation
instructions are on the Rgeo website:
http://www.sal.uiuc.edu/tools/tools-sum/rgeo/rgeo-detail/map-packages-on-cran
"OSX: The rgdal source package from CRAN can be installed on OSX by first
installing PROJ.4 and GDAL, then installing sp, and finally download the
source package tarball to a suitable temporary location, and install with
R CMD INSTALL ... your options ... rgdal*.tar.gz. Your options give the
locations, if required, of --with-gdal-config=, --with-proj-include=,
and/or --with-proj-lib=, all within --configure-args='' as described in
section 1.2.2 of the ''Writing R extensions'' manual."
But this presupposes that you can find the installed software on your
system yourself, something that is difficult to do at a distance. If OSX
has the locate utility, you could run it in a terminal, or search for the
files needed (in Finder??), but an OSX user would know the correct way
forward. I expect that you have installed PROJ.4 too - do either of
proj -lp or gdalinfo --formats or ogrinfo --formats at a terminal prompt
say anything useful to indicate that the applications using the libraries
are available and working?
>
> trying URL
> 'http://www.biometrics.mtu.edu/CRAN/src/contrib/rgdal_0.4-10.tar.gz'
> Content type 'application/x-gzip' length 4009531 bytes
> opened URL
> ==================================================
> downloaded 3915Kb
>
> * Installing *source* package 'rgdal' ...
> gdal-config: gdal-config
> ./configure: line 1: gdal-config: command 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.
>
>
> The downloaded packages are in
> /private/tmp/Rtmp9zhfAK/downloaded_packages
> ** Removing
> '/Library/Frameworks/R.framework/Versions/2.2/Resources/library/rgdal'
> ** Restoring previous
> '/Library/Frameworks/R.framework/Versions/2.2/Resources/library/rgdal'
> ERROR: configuration failed for package 'rgdal'
>
>
> Jonathan B. Thayn
> Kansas Applied Remote Sensing (KARS) Program
> University of Kansas
> Higuchi Hall
> 2101 Constant Avenue
> Lawrence, Kansas 66047-3759
> jonthayn at ku.edu
> www.kars.ku.edu/about/people/thayn/JonSite/Welcome.html
> [[alternative text/enriched version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no
More information about the R-help
mailing list