Rust 0.8 Windows 安装设置

 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
相关文章
相关标签/搜索