[R-sig-Geo] rgdal compile confusion
edzer@pebe@m@ @ending from uni-muen@ter@de
Sun Aug 19 22:14:06 CEST 2018
please report the entire output you see when trying to install rgdal.
On 08/19/2018 08:14 PM, Rich Shepard wrote:
> 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.
> R-sig-Geo mailing list
> R-sig-Geo using r-project.org
Institute for Geoinformatics
Heisenbergstrasse 2, 48151 Muenster, Germany
Phone: +49 251 8333081
More information about the R-sig-Geo