首页 > 解决方案 > 'sf' 软件包的安装具有非零退出状态,CentOS7(在集群上)

问题描述

我在使用 CentOS7 的共享集群上使用 R。

我只在安装这个特定的包“sf”(简单功能)时遇到问题。

我尝试了另一篇文章的解决方案 -传递配置参数以在 R 中安装包,但它仍然运行相同的错误。

我还询问了我们大学集群的程序管理员,他保证 udunits2 已经安装在这个库中(/usr/include/udunits2/)。

install.packages('sf',configure.args=c(sf="--with-udunits2-include=/usr/include/udunits2")
...
Configuration failed because libudunits2.so was not found. Try installing:
    * deb: libudunits2-dev (Debian, Ubuntu, ...)
    * rpm: udunits2-devel (Fedora, EPEL, ...)
    * brew: udunits (OSX)
  If udunits2 is already installed in a non-standard location, use:
    --configure-args='--with-udunits2-lib=/usr/local/lib'
  if the library was not found, and/or:
    --configure-args='--with-udunits2-include=/usr/include/udunits2'
  if the header was not found, replacing paths with appropriate values.
  You can alternatively set UDUNITS2_INCLUDE and UDUNITS2_LIBS manually.

标签: rcentos7sf

解决方案


更新:

我现在可以使用 conda(https://anaconda.org/conda-forge/r-sf)在我们的集群(使用 CentOS 7)上安装“sf”。

conda install -c conda-forge r-sf

推荐阅读