[R] Problem in installing rgdal package in linux

lily li chocold12 @ending from gm@il@com
Tue Sep 18 08:59:05 CEST 2018

Hi all,

I am installing rgdal package in linux for R, and got the error below. I
typed: $ install.packages("rgdal", repos= "http://cran.us.r-project.org")

What is the problem and how to correct it? Thanks for your kind help.

============================== print the error message here

downloaded 1.6 MB

* installing *source* package ‘rgdal’ ...

** package ‘rgdal’ successfully unpacked and MD5 sums checked

configure: R_HOME: /usr/lib64/R

configure: CC: gcc -m64 -std=gnu99

configure: CXX: g++ -m64

configure: C++11 support available

configure: rgdal: 1.3-4

checking for /usr/bin/svnversion... yes

configure: svn revision: 766

checking for gdal-config... no


configure: error: gdal-config not found or not executable.

ERROR: configuration failed for package ‘rgdal’

* removing ‘/directory/R/x86_64-redhat-linux-gnu-library/3.5/rgdal’

The downloaded source packages are in


Warning message:

In install.packages("rgdal") :

  installation of package ‘rgdal’ had non-zero exit status

	[[alternative HTML version deleted]]

More information about the R-help mailing list