【发布时间】:2022-08-18 16:05:05
【问题描述】:
我关注this guide 构建rustc 并得到错误:
-> % ./x.py check
Building rustbuild
Finished dev [unoptimized] target(s) in 0.94s
thread \'main\' panicked at \'
couldn\'t find required command: \"c++\"
\', sanity.rs:59:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Build completed unsuccessfully in 0:00:03
我在prerequisites 看到这条线:
g++ 5.1 或更高版本,clang++ 3.5 或更高版本,或 MSVC 2017 或更高版本。
但它没有解释如何将命令
c++安装到系统中。我在 Rocky Linux 8 上遇到了这个错误,但我认为这也可能发生在 CentOS 上。
标签: rust