在R中安装geojsonio软件包时出错-在另一个软件包中更新错误

时间:2019-12-19 19:09:31

标签: r ubuntu rgdal

我正在尝试在R中安装geojsonio软件包,但它会崩溃并且出现此错误

* installing *source* package ‘sf’ ...
** package ‘sf’ successfully unpacked and MD5 sums checked
configure: CC: gcc -std=gnu99
configure: CXX: g++ -std=gnu++11
checking for gdal-config... /usr/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 1.10.1
checking GDAL version >= 2.0.1... no
configure: error: sf is not compatible with GDAL versions below 2.0.1
ERROR: configuration failed for package ‘sf’
* removing ‘/home/colabadm/R/x86_64-pc-linux-gnu-library/3.5/sf’

我已经使用apt-get remove libgdal-dev删除了gdal软件包,并再次安装了该软件包,但始终是安装的1.0。

我对自己做错的任何想法吗?

我也尝试过 https://github.com/datacarpentry/r-raster-vector-geospatial/issues/138

0 个答案:

没有答案