I'm developing a class for working with texts in C++ (training project). I connected a Travis CI to my git repository to test the code. First build broke with such an error:
The command "if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get install -y llvm-3.4 llvm-3.4-dev; fi" failed and exited with 100 during .
Could someone please explain to me for what caused this error and how to fix it?
Here is my repository if needed: https://github.com/SemenutaEgor/Text
You should actually read the full output that Travis gives you:
E: Unable to locate package llvm-3.4
E: Couldn't find any package by glob 'llvm-3.4'
E: Couldn't find any package by regex 'llvm-3.4'
E: Unable to locate package llvm-3.4-dev
E: Couldn't find any package by glob 'llvm-3.4-dev'
E: Couldn't find any package by regex 'llvm-3.4-dev'
The command "if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get install -y llvm-3.4 llvm-3.4-dev; fi" failed and exited with 100 during .
The packages llvm-3.4
and llvm-3.4-dev
are simply not available in the repository. If you check the build system information, you will see:
Operating System Details
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
You can try to find out wich llvm packages are available in Ubuntu 16.04 by an online search. Alternatively, you can add apt-cache search --names-only llvm
as the first command in the before_install
section of your .travis.yml
to get a list of available llvm packages. The run will still fail until you replace the version numbers with one from the list.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.