RGDAL configure error in Centos

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RGDAL configure error in Centos

R-sig-geo mailing list
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@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

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: RGDAL configure error in Centos

R-sig-geo mailing list
Ah, nevermind. I needed a newer version of PROJ, all working now.

> On Jun 17, 2019, at 1:49 PM, Doug Niven <[hidden email]> wrote:
>
> 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@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
>

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo