• Welcome to LiuJason's Blog!

[已解决]Ubuntu18.04安装rgdal sf失败 configure: error: gdal-config not found or not executable

R语言 Jason 5 years ago (2020-02-23) 1249 Views 0 Comments QR code of this page
文章目录[隐藏]

问题

Ubuntu18.04安装rgdal sf失败,报错:

configure: CC: gcc -std=gnu99
configure: CXX: g++ -std=gnu++11
checking for gdal-config... no
no
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package 'sf'
* removing '/usr/local/lib/R/site-library/sf'

The downloaded source packages are in
        '/tmp/RtmpQ8xJW2/downloaded_packages'
Warning message:
In install.packages("sf") :
  installation of package 'sf' had non-zero exit status

解决办法

安装依赖包即可:

sudo apt-get install libgdal-dev libproj-dev gdal-bin -y

This article is under CC BY-NC-SA 4.0 license.
Please quote the original link:https://www.liujason.com/article/570.html
Like (1)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址