我已经在 Ubuntu 上手动安装了 LLVM-14。除了Rust 货物ld
的编译期间之外,一切似乎都工作正常。cargo-bpf
= note: /usr/bin/ld: cannot find -lLLVM-14
collect2: error: ld returned 1 exit status
error: could not compile `cargo-bpf` (bin "cargo-bpf") due to previous error
输出llvm-config --version
root@ip-172-31-0-42:/opt/llvm/cs-fw# llvm-config --version
14.0.0
LLVM路径:/opt/llvm/clang+llvm-14.0.0-x86_64-linux-gnu-ubuntu-18.04