[gdal-dev] Install error rgdal

Roger Bivand Roger.Bivand at nhh.no
Mon Jan 25 02:11:33 PST 2021


This list is for GDAL itself, not the R package rgdal. Please post on
R-sig-geo, in plain text only. Please also state how you installed PROJ and
GDAL (GDAL is old and pre-dates PROJ), and your OS version.

Roger
(rgdal maintainer)



GDAL - Dev mailing list wrote
> I'm getting this error trying to install newer version of rgdal, already
> have 1.5-16 install and working.
> 
> [: ~]$ gdal-config --version3.0.1[: ~]$ geos-config --version3.7.2[: ~]$
> proj -VRel. 6.2.0, September 1st, 2019  > sessionInfo()R version 4.0.0
> (2020-04-24)Platform: x86_64-pc-linux-gnu (64-bit)Running under: Red Hat
> Enterprise Linux  Matrix products: defaultBLAS:  
> /opt/R/R_4.0.0/lib64/R/lib/libRblas.soLAPACK:
> /opt/R/R_4.0.0/lib64/R/lib/libRlapack.so  locale: [1]
> LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
> LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
> LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
> LC_PAPER=en_US.UTF-8       [8] LC_NAME=C                 
> LC_ADDRESS=C               LC_TELEPHONE=C            
> LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C         attached base
> packages:[1] stats     graphics  grDevices datasets  utils     methods  
> base       loaded via a namespace (and not attached):[1] compiler_4.0.0
> tools_4.0.0    renv_0.12.3         /opt/rh/devtoolset-8/root/usr/bin/g++
> -std=gnu++11 -I"/opt/R/R_4.0.0/lib64/R/include" -DNDEBUG
> -I/usr/local/include -DPROJ_H_API
> -I'/usrfiles/shared-projects/shannon/RSTAN_TESTING/RSTAN_SHARE/renv/staging/3/sp/include'
> -I/usr/local/include   -fpic  -g -O2  -c proj6.cpp -o proj6.oIn file
> included from proj6.cpp:5:proj6.cpp: In function ‘SEXPREC*
> get_source_crs(SEXP)’:proj6.cpp:258:58: error: ‘PJ_WKT2_2019’ was not
> declared in this scope         COPY_TO_USER_STRING(proj_as_wkt(ctx,
> target_crs, PJ_WKT2_2019,
> NULL)));                                                         
> ^~~~~~~~~~~~/opt/R/R_4.0.0/lib64/R/include/Rdefines.h:191:39: note: in
> definition of macro ‘COPY_TO_USER_STRING’ #define COPY_TO_USER_STRING(x)
> mkChar(x)                                       ^proj6.cpp:258:58: note:
> suggested alternative: ‘PJ_WKT2_2018’        
> COPY_TO_USER_STRING(proj_as_wkt(ctx, target_crs, PJ_WKT2_2019,
> NULL)));                                                         
> ^~~~~~~~~~~~/opt/R/R_4.0.0/lib64/R/include/Rdefines.h:191:39: note: in
> definition of macro ‘COPY_TO_USER_STRING’ #define COPY_TO_USER_STRING(x)
> mkChar(x)                                       ^proj6.cpp: In function
> ‘SEXPREC* proj_vis_order(SEXP)’:proj6.cpp:291:58: error: ‘PJ_WKT2_2019’
> was not declared in this scope        
> COPY_TO_USER_STRING(proj_as_wkt(ctx, target_crs, PJ_WKT2_2019,
> NULL)));                                                         
> ^~~~~~~~~~~~/opt/R/R_4.0.0/lib64/R/include/Rdefines.h:191:39: note: in
> definition of macro ‘COPY_TO_USER_STRING’ #define COPY_TO_USER_STRING(x)
> mkChar(x)                                       ^proj6.cpp:291:58: note:
> suggested alternative: ‘PJ_WKT2_2018’        
> COPY_TO_USER_STRING(proj_as_wkt(ctx, target_crs, PJ_WKT2_2019,
> NULL)));        
>                                                  ^~~~~~~~~~~~/opt/R/R_4.0.0/lib64/R/include/Rdefines.h:191:39:
> note: in definition of macro ‘COPY_TO_USER_STRING’ #define
> COPY_TO_USER_STRING(x) mkChar(x)                                      
> ^proj6.cpp: In function ‘SEXPREC* P6_SRID_proj(SEXP, SEXP, SEXP, SEXP,
> SEXP, SEXP)’:proj6.cpp:990:52: error: ‘PJ_WKT2_2019’ was not declared in
> this scope         if ((pszSRS = proj_as_wkt(ctx, source_crs,
> PJ_WKT2_2019, NULL))                           
>                         ^~~~~~~~~~~~proj6.cpp:990:52: note: suggested
> alternative: ‘PJ_WKT2_2018’         if ((pszSRS = proj_as_wkt(ctx,
> source_crs, PJ_WKT2_2019,
> NULL))                                                   
> ^~~~~~~~~~~~                  
>                                  PJ_WKT2_2018make: *** [proj6.o] Error
> 1ERROR: compilation failed for package ‘rgdal’* removing
> ‘/usrfiles/shared-projects/shannon/RSTAN_TESTING/RSTAN_SHARE/renv/staging/3/rgdal’Error:
> install of package 'rgdal' failedTraceback (most recent calls last):14:
> install.packages("rgdal")13: install(pkgs)12: renv_install(records,
> library)11: renv_install_staged(records, library)10:
> renv_install_default(records, library) 9: handler(package,
> renv_install_impl(record)) 8: renv_install_impl(record) 7:
> withCallingHandlers(renv_install_package_local(record), error =
> function(e) {        vwritef("\tFAILED")        writef(e$output)    }) 6:
> renv_install_package_local(record) 5:
> renv_install_package_local_impl(package, path, library) 4:
> r_cmd_install(package, path, library) 3: r_exec(package, args, "install")
> 2: r_exec_error(package, output, label) 1: stop(error)
> Sent from Yahoo Mail on Android
> _______________________________________________
> gdal-dev mailing list

> gdal-dev at .osgeo

> https://lists.osgeo.org/mailman/listinfo/gdal-dev





-----
Roger Bivand
NHH Norwegian School of Economics, Bergen, Norway
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list