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

Tho*_*rme 5 r travis-ci

最近,我R在12月中旬以后在Travis-CI(https://travis-ci.org/TGuillerme/)上更新的各种软件包中都遇到了相同的错误。这是因为三个相关的包,这些变化并没有更改任何代码(只有特别怪异的评论的变化),但特拉维斯-CI现在似乎无法安装一些包(即magicklibgit2使用非常简单).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")'
Run Code Online (Sandbox Code Playgroud)

我在这种情况下得到的错误(尽管它随不同的软件包而有所不同)是与magick软件包有关的:

** 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
Run Code Online (Sandbox Code Playgroud)

2625-2631行

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

Unable to find the libgit2 library on this system. Building 'git2r'
using the bundled source of the libgit2 library.
Run Code Online (Sandbox Code Playgroud)

1563-1564行

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

同样,这对我来说特别奇怪,因为自从上次构建运行以来没有错误,提交的运行代码更改没有不同。

r_a*_*anb 3

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

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

r_binary_packages:
    - libgit2
    - magick
Run Code Online (Sandbox Code Playgroud)