[R-sig-Geo] RGDAL configure error in Centos

Doug Niven dn|ven @end|ng |rom uc@c@edu
Mon Jun 17 22:49:56 CEST 2019


Hi Folks,

Am seeing the following when trying to install RGDAL in fully up-to-date Centos 7 server.

Specifically I believe "proj_api.h and pkg-config give different versions” is the issue, but am unsure how to fix this.

Any tips/suggestions most appreciated!

[root using stats ~]# R CMD INSTALL rgdal_1.4-4.tar.gz 
* installing to library ‘/usr/lib64/R/library’
* 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.4-4
checking for /usr/bin/svnversion... yes
configure: svn revision: 833
checking for gdal-config... /usr/local/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 2.4.0
checking C++11 support for GDAL >= 2.3.0... yes
checking GDAL version >= 1.11.4... yes
checking GDAL version <= 2.5 or >= 3.0... yes
checking gdal: linking with --libs only... yes
checking GDAL: gdal-config data directory readable... yes
checking GDAL: /usr/local/share/gdal/pcs.csv readable... yes
configure: pkg-config proj exists, will use it
configure: PROJ version: 4.8.0
configure: PROJ version < 6.0.0
configure: proj CPP flags:    
checking PROJ header API:... proj_api.h
checking proj_api.h presence and usability... yes
checking PROJ version agreement... no
configure: error: proj_api.h and pkg-config give different versions
ERROR: configuration failed for package ‘rgdal’
* removing ‘/usr/lib64/R/library/rgdal’

Doug



More information about the R-sig-Geo mailing list