Travis CI在pkg-config搜索路径中找不到软件包

时间:2018-12-27 08:45:24

标签: r travis-ci

我最近开始在Travis-CI(https://travis-ci.org/TGuillerme/)上更新的各种R软件包中遇到相同的错误。这特别奇怪,因为对于三个有关的软件包,这些更改没有任何代码更改(仅comments changes),但是Travis-CI现在似乎无法安装某些软件包(即magick和{{1}) })使用运行程序包的非常简单的libgit2文件,并使用.yml进行覆盖:

codecov

在这种情况下,我得到的错误(尽管因不同的软件包而异)是与language: r warnings_are_errors: false branches: only: - master - release except: - CRAN # Code coverage r_packages: - covr after_success: - Rscript -e 'library(covr); codecov(token = "5f041826-63f1-47fa-b4a8-9a32633f47fa")' 软件包有关的:

magick

line 2625-2631

在此之前,还有一条可疑消息:

** package ‘magick’ successfully unpacked and MD5 sums checked
Package Magick++ was not found in the pkg-config search path.
Perhaps you should add the directory containing `Magick++.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Magick++' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lMagick++-6.Q16

line 1563-1564

我明显缺少什么吗?有没有办法强制Travis-CI自动安装错误的软件包?

再次,这对我来说特别奇怪,因为提交的运行代码更改自last build running without errors起没有不同。

1 个答案:

答案 0 :(得分:3)

我能够通过从二进制文件中安装软件包来解决类似问题。

以下内容可能对.travis.yml有帮助:

r_binary_packages:
    - libgit2
    - magick