Skip to content
Back to formatted view

Raw Message

Message-ID: <05624cf1-5933-70c6-3e50-103cb31d01c8@uni-muenster.de>
Date: 2018-08-19T20:14:06Z
From: Edzer Pebesma
Subject: rgdal compile confusion
In-Reply-To: <alpine.LNX.2.20.1808191059440.8446@salmo.appl-ecosys.com>

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

-- 
Edzer Pebesma
Institute for Geoinformatics
Heisenbergstrasse 2, 48151 Muenster, Germany
Phone: +49 251 8333081