The travis ci for our build has broken due to the following problem:
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
doesn't work as libjsoncpp0
doesn't exist; and I also tried sudo apt install libjsoncpp-dev
succeeds, but doesn't solve the problem.
How can I install libjsoncpp0
on travis?
Build log, travis.yml.
Recently I have similar problem with clang-6.0
on Travis in my EventBus library. This just happen without any changes. Probably issue is in the default distro which is picked as: Trusty (here they mention this)
I fixed issue in this way:
# 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']
Seems to work as you can see here Link to my full .travis.yml
Travis documentation about building C++ projects feels little bit old.
So the final result is:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With