如何在gcc C ++编译器中修复Travis CI中的错误?

问题描述 投票:-1回答:1

我正在开发一个用于在C ++中处理文本的类(培训项目)。我将Travis CI连接到我的git存储库以测试代码。首次构建因此类错误而中断:

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 .

有人可以向我解释一下导致此错误的原因及其解决方法吗?

如果需要,这是我的存储库:https://github.com/SemenutaEgor/Text

c++ travis-ci
1个回答
0
投票
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 .

软件包llvm-3.4llvm-3.4-dev在存储库中根本不可用。如果检查构建系统信息,将看到:

Operating System Details

Distributor ID: Ubuntu

Description:    Ubuntu 16.04.6 LTS

Release:    16.04

Codename:   xenial

您可以尝试通过在线搜索找出在Ubuntu 16.04中可用的llvm软件包。或者,您可以在apt-cache search --names-only llvmbefore_install部分中将.travis.yml添加为第一个命令,以获取可用的llvm软件包的列表。在将版本号替换为列表中的一个之前,运行仍将失败。

© www.soinside.com 2019 - 2024. All rights reserved.