I have been trying to install rgdal
from RStudio Version 1.0.44 on ubuntu 16.04 then I was getting the gdal-config not found error. I resolved this by installing the libgdal1-dev
& libproj
packages but now i'm getting the following error. Someone help me resolve this.
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/home/hetch/R/x86_64-pc-linux-gnu-library/3.3/rgdal/libs/rgdal.so':
/usr/lib/x86_64-linux-gnu/libgeos_c.so.1: undefined symbol:_ZN4geos4geom18IntersectionMatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/hetch/R/x86_64-pc-linux-gnu-library/3.3/rgdal’
Warning in install.packages :
installation of package ‘rgdal’ had non-zero exit status
* installing *source* package ‘rgdal’ ... ** package ‘rgdal’ successfully unpacked and MD5 sums checked ... configure: rgdal: 1.3-4 ... checking for gdal-config... /usr/bin/gdal-config checking gdal-config usability... yes configure: GDAL: 1.11.3 checking GDAL version >= 1.11.4... no configure: error: upgrade GDAL to 1.11.4 or later ERROR: configuration failed for package ‘rgdal’ * removing ‘/usr/local/lib/R/site-library/rgdal’ Warning in install.packages : installation of package ‘rgdal’ had non-zero exit status
– Clem Wang Aug 21 '18 at 18:52