Rust 0.8 Windows 安装设置

 rust 0.8 安装的时候未选用 配置 PATH  可能导致PATH 被改乱。安装到D:\Program\Rust\0.8\ 路径

配置安装成功之后需要配置Gcc 的路径到 PATH

配置如下:

SET RUST_LOG=rustc=1
SET PATH=D:\Program\Rust\0.8\bin;C:\MinGW\bin;%PATH%

查看Rust 帮助

rust  help

不配置Gcc 到路径的话,可能出现如下出错信息

$>D:\Program\Rust\0.8\bin\rust build main.rs
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1 to get further details and report the results to github.com/mozilla/rust/issues
$>D:\Program\Rust\0.8\bin\rust build main.rs
task <unnamed> failed at 'failure in CreateProcess: The system cannot find the file specified.
', C:\bot\slave\dist2-win\build\src\libstd\run.rs:532
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1 to get further details and report the results to github.com/mozilla/rust/issues
task <unnamed> failed at 'explicit failure', c:\bot\slave\dist2-win\build\src\librustc\rustc.rs:391

你可能感兴趣的:(windows,安装,Rust,0.8)