gpt4 book ai didi

github - RStudio 和 Travis CI 构建检查不匹配 (libudunits2.so)

转载 作者:行者123 更新时间:2023-12-03 20:15:57 25 4
gpt4 key购买 nike

Travis CI 检测并发出 Build > Check 未发现的问题在 RStudio我的 lares库(在 Github 中作为 laresbernardo/lares 找到)。根据 Travis CI 的说法,我最后一次“通过”提交实际上是一个错字更改,因此库的代码应该不是问题;所以,当我运行 devtools::check()对于图书馆,我得到了不错的 R CMD check succeeded带有 0 个错误、警告或注释的消息。

我已经尝试过消息建议的内容和其他内容:

  • 运行 brew install udunits在终端 (macOS)
  • 通过 CRAN 使用 install.packages(units) 安装库
  • 并通过 Github (dev) 和 devtools::install_github("r-quantities/units", args="--configure-args='--with-udunits2-lib=/usr/local/lib'")
  • devtools::install_github("r-quantities/units", args="--configure-args='--with-udunits2-include=/usr/include/udunits2'")

  • 这是 Travis CI 日志的结尾,也可以在这里找到: https://travis-ci.org/laresbernardo/lares
    (...)
    checking for ut_read_xml in -ludunits2... no
    configure: error: in `/tmp/RtmpITNXhh/R.INSTALL3d3b9a0f951/units':
    configure: error:
    --------------------------------------------------------------------------------
    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.
    --------------------------------------------------------------------------------
    See `config.log' for more details
    ERROR: configuration failed for package ‘units’
    * removing ‘/home/travis/R/Library/units’
    Error in i.p(...) :
    (converted from warning) installation of package ‘units’ had non-zero exit status
    Calls: <Anonymous> ... with_rprofile_user -> with_envvar -> force -> force -> i.p
    Execution halted
    The command "Rscript -e 'deps <- devtools::dev_package_deps(dependencies = NA);devtools::install_deps(dependencies = TRUE);if (!all(deps$package %in% installed.packages())) { message("missing: ", paste(setdiff(deps$package, installed.packages()), collapse=", ")); q(status = 1, save = "no")}'" failed and exited with 1 during .
    Your build has been stopped.

    我没有想法。是不是 stringi有变化或 units图书馆?还是 Travis CI 问题?或者我图书馆里的东西设置不同?

    最佳答案

    解决了将以下内容添加到 .travis.yml 的问题文件!我必须指定需要安装这个库。

    addons:
    apt:
    packages:
    - libudunits2-dev

    感谢 units 的开发者 Iñaki Ucar图书馆,非常有用的答案。

    关于github - RStudio 和 Travis CI 构建检查不匹配 (libudunits2.so),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54678006/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com