[R-sig-Geo] rgdal compile confusion

Rich Shepard r@hep@rd @ending from @ppl-eco@y@@com
Sun Aug 19 20:14:44 CEST 2018


On Sat, 11 Aug 2018, Rich Shepard wrote:

   When I update.packages() I'm told that the attempt ended with a non-zero error message:

trying URL 'https://ftp.osuosl.org/pub/cran/src/contrib/rgdal_1.3-4.tar.gz'
Content type 'application/x-gzip' length 1664774 bytes (1.6 MB)
==================================================
downloaded 1.6 MB

Warning message:
In install.packages(update[instlib == l, "Package"], l, contriburl = contriburl,  :
   installation of package ‘rgdal’ had non-zero exit status

   The update to version 1.3-3 last May worked. What might be the reason the
upgrade to 1.3-4 fails?

   R produces contradictory messages:

configure: C++11 support available
configure: rgdal: 1.3-4
   ...
checking for gdal-config... /usr/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 2.3.0
checking C++11 support for GDAL >= 2.3.0... yes
checking GDAL version >= 1.11.4... yes

   Looks OK, yes? But, immediately following is this:

In file included from /usr/include/gdal.h:45:0,
                  from gdal_test.cc:1:
/usr/include/cpl_port.h:187:6: error: #error Must have C++11 or newer.
  #    error Must have C++11 or newer.
       ^
   ...
configure: Install failure: compilation and/or linkage problems.
configure: error: GDALAllRegister not found in libgdal.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/usr/lib/R/library/rgdal’
* restoring previous ‘/usr/lib/R/library/rgdal’

  Yet configure found C++11 support for gdal and the version of the latter is
greater than 1.11.4.

TIA,

Rich



More information about the R-sig-Geo mailing list