r - '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.
解决方案
更新:
我现在可以使用 conda(https://anaconda.org/conda-forge/r-sf)在我们的集群(使用 CentOS 7)上安装“sf”。
conda install -c conda-forge r-sf
推荐阅读
- android - Azure NotificationHub 推送通知不适用于 Android 8.0 API 26
- swift - 带有共享扩展的后台上传
- javascript - 在promise中出现错误后继续子循环 - try/catch
- c# - c#datagridview当按钮单击允许用户添加行
- c# - C# 需要帮助确保将多次出现的相同字母标记为数字
- wordpress - 为什么即使我卸载了 WP-Socializer 插件,我也无法在移动版上删除社交图标?
- php - cURL/GuzzleHTTP 检查直接下载链接的状态码
- python - Python Coverage - 不覆盖函数内容,只是定义
- visual-studio-code - 你如何在 VSCode 中取消拆分终端?
- r - 如何从字符串中删除未知符号?