Skip to content

installing rgdal when gdal is in a non-standard location

2 messages · Hodgess, Erin, Roger Bivand

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

Sorry for the dumb question!

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

            
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