rust 0.8 安裝的時候未選用 配置 PATH 可能致使PATH 被改亂。安裝到D:\Program\Rust\0.8\ 路徑 git
配置安裝成功以後須要配置Gcc 的路徑到 PATH github
配置以下:
shell
SET RUST_LOG=rustc=1 SET PATH=D:\Program\Rust\0.8\bin;C:\MinGW\bin;%PATH%
查看Rust 幫助 ui
rust help this
不配置Gcc 到路徑的話,可能出現以下出錯信息 code
$>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