[R-sig-Geo] rgdal compile confusion

Rich Shepard r@hep@rd @ending from @ppl-eco@y@@com
Sun Aug 19 22:49:38 CEST 2018


On Sun, 19 Aug 2018, Edzer Pebesma wrote:

> please report the entire output you see when trying to install rgdal.

Edzer,

* installing *source* package ‘rgdal’ ...
** package ‘rgdal’ successfully unpacked and MD5 sums checked
configure: R_HOME: /usr/lib/R
configure: CC: gcc
configure: CXX: g++
configure: C++11 support available
configure: rgdal: 1.3-4
checking for /usr/bin/svnversion... yes
configure: svn revision: 766
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
checking gdal: linking with --libs only... no
checking gdal: linking with --libs and --dep-libs... no
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.
       ^
In file included from /usr/include/gdal.h:49:0,
                  from gdal_test.cc:1:
/usr/include/cpl_minixml.h:202:47: error: expected template-name before '<' token
  class CPLXMLTreeCloser: public std::unique_ptr<CPLXMLNode, CPLXMLTreeCloserDeleter>
                                                ^
/usr/include/cpl_minixml.h:202:47: error: expected '{' before '<' token
/usr/include/cpl_minixml.h:202:47: error: expected unqualified-id before '<' token
In file included from /usr/include/ogr_api.h:45:0,
                  from /usr/include/gdal.h:50,
                  from gdal_test.cc:1:
/usr/include/ogr_core.h:79:28: error: expected '}' before end of line
/usr/include/ogr_core.h:79:28: error: expected declaration before end of line
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.
       ^
In file included from /usr/include/gdal.h:49:0,
                  from gdal_test.cc:1:
/usr/include/cpl_minixml.h:202:47: error: expected template-name before '<' token
  class CPLXMLTreeCloser: public std::unique_ptr<CPLXMLNode, CPLXMLTreeCloserDeleter>
                                                ^
/usr/include/cpl_minixml.h:202:47: error: expected '{' before '<' token
/usr/include/cpl_minixml.h:202:47: error: expected unqualified-id before '<' token
In file included from /usr/include/ogr_api.h:45:0,
                  from /usr/include/gdal.h:50,
                  from gdal_test.cc:1:
/usr/include/ogr_core.h:79:28: error: expected '}' before end of line
/usr/include/ogr_core.h:79:28: error: expected declaration before end of line
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’

Regards,

Rich



More information about the R-sig-Geo mailing list