[R] rgdal in 3.5 fails(?)
J C Nash
pro|jcn@@h @end|ng |rom gm@||@com
Fri Jun 15 18:31:04 CEST 2018
I just tested that it installs in Linux Mint 18.3, but I've had similar install problems recently where
I had to explicitly install some libraries in the OS. In some cases there were hints. I don't see anything
here that I recognize, but I do know in the past I've needed to install libgdal-dev.
JN
On 2018-06-15 11:58 AM, lejeczek via R-help wrote:
> hi there
>
> installation of the package fails:
>
> ...
>
> g++ -m64 -std=gnu++11 -I"/usr/include/R" -DNDEBUG -I/usr/include/gdal
> -I/tmp/RtmpPEjOIB/R.INSTALL952df53b77184/rgdal/inst/include -I/tmp/RtmpPEjOIB/R.INSTALL952df53b77184/rgdal/inst/include
> -I"/usr/lib64/R/library/sp/include" -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c OGR_write.cpp -o
> OGR_write.o
> g++ -m64 -std=gnu++11 -I"/usr/include/R" -DNDEBUG -I/usr/include/gdal
> -I/tmp/RtmpPEjOIB/R.INSTALL952df53b77184/rgdal/inst/include -I/tmp/RtmpPEjOIB/R.INSTALL952df53b77184/rgdal/inst/include
> -I"/usr/lib64/R/library/sp/include" -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c gdal-bindings.cpp -o
> gdal-bindings.o
> gdal-bindings.cpp: In function ‘SEXPREC* RGDAL_GDALwithGEOS()’:
> gdal-bindings.cpp:334:81: error: no matching function for call to ‘OGRGeometryFactory::createFromWkt(const char*, NULL,
> OGRGeometry**)’
> OGRGeometryFactory::createFromWkt( (const char*) pszWKT, NULL, &poGeometry1 );
> ^
> gdal-bindings.cpp:334:81: note: candidate is:
> In file included from /usr/include/gdal/ogr_feature.h:34:0,
> from /usr/include/gdal/ogrsf_frmts.h:35,
> from gdal-bindings.cpp:7:
> /usr/include/gdal/ogr_geometry.h:663:19: note: static OGRErr OGRGeometryFactory::createFromWkt(char**,
> OGRSpatialReference*, OGRGeometry**)
> static OGRErr createFromWkt( char **, OGRSpatialReference *,
> ^
> /usr/include/gdal/ogr_geometry.h:663:19: note: no known conversion for argument 1 from ‘const char*’ to ‘char**’
> gdal-bindings.cpp:340:81: error: no matching function for call to ‘OGRGeometryFactory::createFromWkt(const char*, NULL,
> OGRGeometry**)’
> OGRGeometryFactory::createFromWkt( (const char*) pszWKT, NULL, &poGeometry2 );
>
>
> Would you know is this the package's problem in new 3.5 version?
>
> Many thanks, L.
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list