gpt4 book ai didi

llvm - 无法在 Ubuntu 16.04 上安装 llvm-9 或 clang-9

转载 作者:行者123 更新时间:2023-12-03 21:18:07 27 4
gpt4 key购买 nike

我无法在 Ubuntu 上安装 llvm 版本 9 或 clang 版本 9。我们已经在 Windows 上安装了它们。

我尝试了一个命令并看到了这个响应。

sudo apt-get install llvm-9
Reading package lists... Done
Building dependency tree
Reading state information...
Done E: Unable to locate package llvm-9

我也试过并看到了这个回应。
sudo apt-get install clang-9
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package clang-9

我的 /etc/apt/sources.list 文件包含
deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-9.0 main

我找到了网站,看到文件夹是 llvm-toolchain-xenial-9 .尝试该版本也不起作用。

我还可以做些什么?

我查看了下载二进制文件,但不确定我可能缺少哪些安装步骤。我对编译源代码不感兴趣。

最佳答案

Clang/LLVM 项目为 Ubuntu 和 Debian 提供 Nightly 构建包。

https://apt.llvm.org

The goal is to provide Debian and Ubuntu [Clang and LLVM] packages ready to be installed with minimal impact on the distribution. Packages are available for amd64 and i386 (except for recent Ubuntu) and for both the stable, old-stable and development branches (currently 8, 9 and 10).

Packages are built using stage2 and extremely similar to the one shipping in Debian & Ubuntu.



使用:
  • 将适当的存储库添加到/etc/apt/sources.list 文件中;不同的 Debian 和 Ubuntu 版本有不同的存储库。
  • 添加 apt key (显示在链接中)。
  • 运行 apt update 刷新缓存。
  • 使用 apt install clang-9 添加包(或其他所需的包)。


  • 如果使用经过审查的软件包系统“不起作用”,请直接诊断该问题 . Xenial 有 Clang/LLVM 9 软件包,我最近将这些软件包安装到 Disco 中。

    所描述的症状(“无法找到包”)听起来好像是一个 忽略运行 apt update ,在这种情况下,来自新添加源的包对 apt 不可见。这是一个工具使用问题,而不是缺少可用的软件包。

    关于llvm - 无法在 Ubuntu 16.04 上安装 llvm-9 或 clang-9,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58242715/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com