代码之家  ›  专栏  ›  技术社区  ›  user14717

因Libjsoncp0导致travis休息时发出叮当声6

  •  0
  • user14717  · 技术社区  · 6 年前

    由于以下问题,我们生成的travis ci已损坏:

    The following packages have unmet dependencies:
     clang-6.0 : Depends: libjsoncpp0 (>= 0.6.0~rc2) but it is not installable
    E: Unable to correct problems, you have held broken packages.
    apt-get.diagnostics
    apt-get install failed
    

    sudo apt install libjsoncpp0 不起作用 libjsoncpp0 不存在,我也尝试过 sudo apt install libjsoncpp-dev 成功,但不能解决问题。

    如何安装 libjsoncp0文件 在特拉维斯身上?

    Build log , travis.yml .

    0 回复  |  直到 5 年前
        1
  •  3
  •   Gelldur    5 年前

    最近我有类似的 problem 具有 clang-6.0 关于我的特拉维斯 EventBus library . 这一切都是在没有任何改变的情况下发生的。可能问题在默认发行版中,选择为:Trusty (here they mention this)

    我用这种方式解决了问题:

    # clang-6
    - os: linux
      name: "Xenial - clang 6"
      dist: xenial
      env: [USE_CC='/usr/bin/clang-6.0', USE_CXX='/usr/bin/clang++-6.0']
      addons:
        apt:
          packages: ['clang-6.0', 'cmake']
          sources: ['ubuntu-toolchain-r-test']
    

    似乎你能工作 see here 链接到“我的全部” .travis.yml

    Travis documentation 关于构建C++项目,感觉有点老了。


    所以最终的结果是:

    enter image description here