"install -y clang-9 libc++-9-dev libc++abi-9-dev" エラー

Mistuba 2パッケージをインストールしました(https://github.com/mitsuba-renderer/mitsuba2)はbtfレンダリングを実行できます(https://github.com/elerac/btf-rendering/)。

しかし、Mitsubaをインストールするには、clang9やその他の古いパッケージが必要です。これらのパッケージをインストールしようとすると、Linuxでは解決できないエラーメッセージが表示されますが、システムをダウングレードする必要があると考えられます。

実行するコマンド:

sudo apt install -y clang-9 libc++-9-dev libc++abi-9-dev cmake ninja-build

次のエラーが発生します。

vitor-avancini@Nabucodonosor-desk:~$ sudo apt install -y clang-9 libc++-9-dev libc++abi-9-dev cmake ninja-build
Reading package lists ... ready
Building Dependency Tree ... Ready
READING STATE INFORMATION ... READY
Ninja-Build is already the latest version (1.10.1-1).
Cmake is already the latest version (3.22.1-1ubuntu1.22.04.1).
Some packages could not be installed. This may mean that
You have requested an impossible situation or, if you are using the
unstable distribution that some required packages were not
Created still or were removed from the "Incoming".
The following information can help solve the situation:

The following packages have mismatched dependencies:
  lib32gcc-s1: Break: lib32gcc-s1 (<1:10) But 1: 8.4.0-1ubuntu1~18.04 is to be installed
  libc6-dev: Break: libc7-dev (<7.5.0-6 ~) but 7.5.0-3ubuntu1 ~ 18.04 is to be installed
E: Impossible to correct problems, you kept broken packages.

システムメッセージ:

Kernel: 5.15.0-48-generic x86_64 bits: 64 compiler: gcc v: 11.2.0 Desktop: Cinnamon 5.4.12
    tk: GTK 3.24.33 wm: Mutter dm: LightDM Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy

この問題をどのように解決しますか?

ベストアンサー1

clang インストール手順が古くなっています。次のコマンドを実行する必要があります。

sudo apt install -y clang libc++-dev libc++abi-dev cmake ninja-build

三菱2を構築するには:説明するしかし、使用

export CC=clang
export CXX=clang++

clang-9とを直接引用する代わりにclang++-9

構成に18.04リポジトリを追加したようです。この場合は削除する必要があります。

おすすめ記事