首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >RStudio服务器上的非零退出状态包安装错误

RStudio服务器上的非零退出状态包安装错误
EN

Stack Overflow用户
提问于 2022-02-18 13:42:18
回答 1查看 1.5K关注 0票数 0

我一直试图在“inlabru”中运行一个LGCP,这需要花费很长时间,所以我被设置了一个Unix帐户来访问RStudio服务器。问题是,现在我得到了一些软件包的非零退出状态安装错误。特别是“rgdal”和“inlabru”。我尝试过(对于'rgdal')安装依赖项和PROJ/GDAL,但没有成功。错误的结尾是:

代码语言:javascript
运行
复制
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/rgdal’
Warning in install.packages :
  installation of package ‘rgdal’ had non-zero exit status
ERROR: dependency ‘systemfonts’ is not available for package ‘svglite’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/svglite’
Warning in install.packages :
  installation of package ‘svglite’ had non-zero exit status
ERROR: dependency ‘terra’ is not available for package ‘raster’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/raster’
Warning in install.packages :
  installation of package ‘raster’ had non-zero exit status
ERROR: dependencies ‘s2’, ‘units’ are not available for package ‘sf’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/sf’
Warning in install.packages :
  installation of package ‘sf’ had non-zero exit status
ERROR: dependency ‘raster’ is not available for package ‘leaflet’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/leaflet’
Warning in install.packages :
  installation of package ‘leaflet’ had non-zero exit status
ERROR: dependencies ‘sf’, ‘svglite’ are not available for package ‘leafpop’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/leafpop’
Warning in install.packages :
  installation of package ‘leafpop’ had non-zero exit status
ERROR: dependencies ‘raster’, ‘terra’ are not available for package ‘satellite’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/satellite’
Warning in install.packages :
  installation of package ‘satellite’ had non-zero exit status
ERROR: dependencies ‘leaflet’, ‘raster’, ‘sf’ are not available for package ‘leafem’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/leafem’
Warning in install.packages :
  installation of package ‘leafem’ had non-zero exit status
ERROR: dependencies ‘leafem’, ‘leaflet’, ‘leafpop’, ‘raster’, ‘satellite’, ‘sf’ are not available for package ‘mapview’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/mapview’
Warning in install.packages :
  installation of package ‘mapview’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/Rtmp57pHoc/downloaded_packages’

我认为安装失败的是库,因为它是服务器,但我尝试将.libPaths()更改为驱动器上的文件夹,但没有成功。我也试过跑步

代码语言:javascript
运行
复制
install.packages("rgdal", type="source", repos="http://R-Forge.R-project.org", configure.args=c('--with-gdal-config=/opt/local/bin/gdal-config'))

并获取

代码语言:javascript
运行
复制
configure: error: gdal-config not found - configure argument error.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/rgdal’
Warning in install.packages :
  installation of package ‘rgdal’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/Rtmp57pHoc/downloaded_packages’

任何帮助都是非常感谢的!

EN

回答 1

Stack Overflow用户

发布于 2022-02-18 14:30:01

没有安装gdal (和朋友)

代码语言:javascript
运行
复制
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev 
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71174464

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档