[R-sig-Geo] installing rgdal when gdal is in a non-standard location

Roger Bivand Roger.Bivand at nhh.no
Thu Apr 14 17:57:42 CEST 2016


On Thu, 14 Apr 2016, Hodgess, Erin wrote:

> Hello!
>
> I'm trying to install rgdal and I have already installed gdal.  gdal is 
> in a non-standard location, since I don't have administrative rights on 
> this system.
>
> I've seen how to use the configure.args with proj, but don't see 
> anything for gdal.

You'll need something like:

--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

(these values were for OSX some time ago, but the three values should be 
enough). For GDAL, the path to gdal-config is all that is needed. This is 
from system.file("README", package="rgdal"), but as you don't have rgdal 
installed, it's harder to find.

Hope this helps,

Roger

>
> Sorry for the dumb question!
>
> Thanks,
> Erin
>
>
> 	[[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
>

-- 
Roger Bivand
Department of Economics, Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 91 00
e-mail: Roger.Bivand at nhh.no
http://orcid.org/0000-0003-2392-6140
https://scholar.google.no/citations?user=AWeghB0AAAAJ&hl=en
http://depsy.org/person/434412



More information about the R-sig-Geo mailing list