4

我正在尝试在优秀的 Travis-CI 中构建我的项目(我将其用于构建系统为 GNU make 的其他项目)。

我的项目使用boost-build 构建,我正在尝试找到正确的 apt-get 包来使用,但简单的方法boost-build不起作用。有谁知道有包boost-build吗?此外,如果有人知道如何查找可通过 travis-ci 获得的包名称,那将非常有帮助。我相信他们运行我不熟悉的 Ubuntu(我使用 Arch)。

这是我的.travis.yml(如果有帮助的话)

language: cpp
compiler: gcc 
before_script:
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  - sudo apt-get -qq update
  - sudo apt-get -qq install g++-4.8 valgrind boost-build
  - export CXX="g++-4.8"
  - git submodule update --init --recursive
script:
  - b2

错误很简单:

$ sudo apt-get -qq install g++-4.8 valgrind boost-build
E: Package 'boost-build' has no installation candidate
4

1 回答 1

2

你可以在你的 .travis.yml 上试试这个

before_install:
    # or another boost version
    - sudo add-apt-repository ppa:apokluda/boost1.53 --yes
    - sudo apt-get update

install:
    # or another boost version
    - sudo apt-get install libboost-system1.53-dev
    - sudo apt-get install libboost-regex1.53-dev
    - sudo apt-get install libboost-filesystem1.53-dev
于 2015-07-08T04:27:54.383 回答