[R-sig-Geo] rgdal compile confusion

Roger Bivand Roger@Biv@nd @ending from nhh@no
Mon Aug 20 09:03:44 CEST 2018


And the output of sessionInfo() - we don't know your platform. How was 
GDAL itself installed: from source or binary? Was that binary built on the 
same platform? Are there multiple GDAL installations on your system? If 
so, the configure step may see one version but install sees another.

Roger

On Sun, 19 Aug 2018, Rich Shepard wrote:

> 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
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>

-- 
Roger Bivand
Department of Economics, Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; e-mail: Roger.Bivand using nhh.no
http://orcid.org/0000-0003-2392-6140
https://scholar.google.no/citations?user=AWeghB0AAAAJ&hl=en


More information about the R-sig-Geo mailing list