ubuntu - 如何在 Travis-CI 上使用 boost-build 构建?

标签 ubuntu boost travis-ci boost-build

我正在尝试在优秀的 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

最佳答案

你可以在你的 .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

关于ubuntu - 如何在 Travis-CI 上使用 boost-build 构建?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22572384/

相关文章:

c++ - 无论编码如何,从 wifstream 中提取正确的文本

c++ - 在没有包装器的情况下 boost 指向原语的指针的序列化

android - Travis-CI 和 Android JUnit 测试

ruby-on-rails - rbenv 不能在 ubuntu 上使用 rbenv 和 ruby​​-build 工作吗?

c++ - 替换 boost build v2 中的编译器

linux - 使用 bash 脚本在文件中显示 Linux 中所有正在运行的进程的名称

angularjs - 使用 Travis CI 测试使用 SASS 的 AngularJS 应用程序

python - Travis-ci 构建失败但测试在本地通过

ubuntu - EC2 VPC 上的 Openswan

java - 按回车键时停止 Linux 终端换行