首页 > 解决方案 > rgdal 无法识别 GDAL 版本

问题描述

我正在尝试在 RHEL 6 上安装 rgdal。我已经安装了 GDAL 版本 1.7.3 和 PROJ 版本 4.7.0-1。当我跑

install.packages("rgdal")

我收到以下错误:

checking gdal-config usability... yes
configure: GDAL: 1.7.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/lib64/R/library/rgdalâ

rgdal CRAN 页面说您需要 GDAL 1.1 或更高版本。不支持GDAL 1.7吗?谁能告诉我如何安装兼容版本的 GDAL 或解释如何让 R 识别我当前的版本?

我正在使用 R 3.5.0

标签: rgdalrgdalrhel6

解决方案


您至少需要 GDAL 版本 1.11,而不是 1.1。


推荐阅读