简体   繁体   English

无法在 Ubuntu 16.04 LTS 上安装“sf”R 包

[英]Unable to install ‘sf’ R package on Ubuntu 16.04 LTS

I'm not able to install sf R package on Ubuntu 16.04 LTS .我无法在Ubuntu 16.04 LTS上安装sf R包。 I tried我试过

install.packages("sf")

as well as

devtools::install_github("r-spatial/sf")

after running跑完后

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev 

Getting the following error message:收到以下错误消息:

configure: error: gdal-config not found or not executable.配置:错误:gdal-config 未找到或不可执行。

ERROR: configuration failed for package 'sf'错误:包“sf”的配置失败

Wonder what is the way to install sf ?想知道sf安装方法是什么?

This worked for me.这对我有用。 Using使用

sudo aptitude install libgdal-dev

and then进而

devtools::install_github("r-spatial/sf")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM