@
PureWhiteWu 根据 Github 显示 Dependencies
Make sure you have installed the dependencies:
python 3 or 2.7
git
A C compiler (when building for the host, is enough; cross-compiling may need additional compilers)cc
curl (not needed on Windows)
pkg-config if you are compiling on Linux and targeting Linux
libiconv (already included with glibc on Debian-based distros)
To build Cargo, you'll also need OpenSSL ( or on most Unix distros).libssl-devopenssl-devel
If building LLVM from source, you'll need additional tools:
g++, , or MSVC with versions listed on LLVM's documentationclang++
ninja, or GNU 3.81 or later (Ninja is recommended, especially on Windows)make
cmake 3.13.4 or later
libstdc++-static may be required on some Linux distributions such as Fedora and Ubuntu
On tier 1 or tier 2 with host tools platforms, you can also choose to download LLVM by setting . Otherwise, you'll need LLVM installed and in your path. See the rustc-dev-guide for more info.llvm.download-ci-llvm = truellvm-config
注意这行 A C compiler (when building for the host, is enough; cross-compiling may need additional compilers)
如果连 C compiler 都不健全(参考部分 Darwin 设备),你咋编译出 Rust ... 而且要是有这个编译环境,为啥不上 Java ...