Trouble installing rgdal
You might try this
install.packages("rgdal", "/sw/arcts/centos7/Rgeospatial/062020",
repos="http://R-Forge.R-project.org")
as there have been recent patches to rgdal that might help that have
been incorporated there.
On Thu, Jul 2, 2020 at 1:47 PM Thomas Adams <tea3rd at gmail.com> wrote:
Hi all, I have searched the internet and have spent a few days trying to get to the problem when I try to install rgdal into my Ubuntu 18.04 system. I have done this many times previously, but cannot seem to track down what I am doing wrong now. I have tried a forced install from sources with and without dependencies. Below is what I get. Any help is appreciated. Tom
install.packages("rgdal")
Installing package into ?/home/teaiii/R/x86_64-pc-linux-gnu-library/4.0? (as ?lib? is unspecified) trying URL 'https://cran.case.edu/src/contrib/rgdal_1.5-12.tar.gz' Content type 'application/x-gzip' length 2302403 bytes (2.2 MB) ================================================== downloaded 2.2 MB * installing *source* package ?rgdal? ... ** package ?rgdal? successfully unpacked and MD5 sums checked ** using staged installation configure: R_HOME: /usr/local/lib/R configure: CC: gcc configure: CXX: g++ -std=gnu++11 configure: CXX11 is: g++, CXX11STD is: -std=gnu++11 configure: CXX is: g++ -std=gnu++11 configure: C++11 support available configure: rgdal: 1.5-12 checking for /usr/bin/svnversion... yes configure: svn revision: 1018 checking for gdal-config... /usr/local/bin/gdal-config checking gdal-config usability... yes configure: GDAL: 3.0.0 checking GDAL version >= 1.11.4... yes checking GDAL version <= 2.5 or >= 3.0... yes checking GDAL: linking with --libs only... yes checking GDAL: gdal-config data directory readable... yes checking GDAL: /usr/local/share/gdal/stateplane.csv readable... yes configure: pkg-config proj exists, will use it configure: PROJ version: 6.1.0 configure: PROJ CPP flags: -DPROJ_H_API -I/usr/local/include configure: PROJ LIBS: -L/usr/local/lib -lproj checking PROJ header API:... yes checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ -std=gnu++11 accepts -g... yes checking how to run the C++ preprocessor... g++ -std=gnu++11 -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking proj.h usability... yes checking proj.h presence... yes checking for proj.h... yes checking for proj_context_create in -lproj... yes checking Using GDAL < 3 with PROJ >= 6... no checking PROJ version >= 4.8.0... yes checking PROJ: proj.db found and readable... yes configure: Package CPP flags: -I/usr/local/include -I/usr/local/include -DPROJ_H_API configure: Package LIBS: -L/usr/local/lib -lgdal -L/usr/local/lib -lproj configure: creating ./config.status config.status: creating src/Makevars ** libs g++ -std=gnu++11 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -I/usr/local/include -DPROJ_H_API -I'/home/teaiii/R/x86_64-pc-linux-gnu-library/4.0/sp/include' -I/usr/local/include -fpic -g -O2 -c OGR_write.cpp -o OGR_write.o g++ -std=gnu++11 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -I/usr/local/include -DPROJ_H_API -I'/home/teaiii/R/x86_64-pc-linux-gnu-library/4.0/sp/include' -I/usr/local/include -fpic -g -O2 -c gdal-bindings.cpp -o gdal-bindings.o gcc -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -I/usr/local/include -DPROJ_H_API -I'/home/teaiii/R/x86_64-pc-linux-gnu-library/4.0/sp/include' -I/usr/local/include -fpic -g -O2 -c init.c -o init.o gcc -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -I/usr/local/include -DPROJ_H_API -I'/home/teaiii/R/x86_64-pc-linux-gnu-library/4.0/sp/include' -I/usr/local/include -fpic -g -O2 -c inverser.c -o inverser.o gcc -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -I/usr/local/include -DPROJ_H_API -I'/home/teaiii/R/x86_64-pc-linux-gnu-library/4.0/sp/include' -I/usr/local/include -fpic -g -O2 -c local_stubs.c -o local_stubs.o g++ -std=gnu++11 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -I/usr/local/include -DPROJ_H_API -I'/home/teaiii/R/x86_64-pc-linux-gnu-library/4.0/sp/include' -I/usr/local/include -fpic -g -O2 -c ogr_geom.cpp -o ogr_geom.o gcc -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -I/usr/local/include -DPROJ_H_API -I'/home/teaiii/R/x86_64-pc-linux-gnu-library/4.0/sp/include' -I/usr/local/include -fpic -g -O2 -c ogr_polygons.c -o ogr_polygons.o g++ -std=gnu++11 -I"/usr/local/lib/R/include" -DNDEBUG -I/usr/local/include -I/usr/local/include -DPROJ_H_API -I'/home/teaiii/R/x86_64-pc-linux-gnu-library/4.0/sp/include' -I/usr/local/include -fpic -g -O2 -c ogr_proj.cpp -o ogr_proj.o ogr_proj.cpp: In function ?SEXPREC* R_GDAL_OSR_PROJ()?: ogr_proj.cpp:163:9: error: ?OSRGetPROJVersion? was not declared in this scope OSRGetPROJVersion(&pnMajor, &pnMinor, &pnPatch); ^~~~~~~~~~~~~~~~~ ogr_proj.cpp:163:9: note: suggested alternative: ?OSRProjVersion? OSRGetPROJVersion(&pnMajor, &pnMinor, &pnPatch); ^~~~~~~~~~~~~~~~~ OSRProjVersion /usr/local/lib/R/etc/Makeconf:176: recipe for target 'ogr_proj.o' failed make: *** [ogr_proj.o] Error 1 ERROR: compilation failed for package ?rgdal? * removing ?/home/teaiii/R/x86_64-pc-linux-gnu-library/4.0/rgdal? The downloaded source packages are in ?/tmp/RtmpNkdFOf/downloaded_packages? Warning message: In install.packages("rgdal") : installation of package ?rgdal? had non-zero exit status -- Thomas E Adams, III 1724 Sage Lane Blacksburg, VA 24060 tea3rd at gmail.com (personal) tea at terrapredictions.org (work) 1 (513) 739-9512 (cell) [[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo