< 返回版块

chn-cutelotus 发表于 2020-06-18 14:36

PS D:\coding\Rust\learn_crate4> cargo check Compiling winapi-x86_64-pc-windows-gnu v0.4.0 Compiling winapi v0.3.8 Compiling libc v0.2.71 Compiling gcc v0.3.55 Checking rustc-serialize v0.3.24 Compiling rust-crypto v0.2.36 error: failed to run custom build command for rust-crypto v0.2.36

Caused by: process didn't exit successfully: D:\coding\Rust\learn_crate4\target\debug\build\rust-crypto-20820daac843b87b\build-script-build (exit code: 101) --- stdout TARGET = Some("x86_64-pc-windows-gnu") OPT_LEVEL = Some("0") TARGET = Some("x86_64-pc-windows-gnu") TARGET = Some("x86_64-pc-windows-gnu") HOST = Some("x86_64-pc-windows-gnu") CFLAGS_x86_64-pc-windows-gnu = None CFLAGS_x86_64_pc_windows_gnu = None HOST_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-m64" "-Wall" "-Wextra" "-o" "D:\coding\Rust\learn_crate4\target\debug\build\rust-crypto-72671461d9e8381a\out\src/util_helpers.o" "-c" "src/util_helpers.c"

--- stderr thread 'main' panicked at '

Internal error occurred: Failed to find tool. Is cc installed? (see https://github.com/alexcrichton/gcc-rs#compile-time-requirements for help)

', C:\Users\Lotus.cargo\registry\src\crates.rustcc.com-a21e0f92747beca3\gcc-0.3.55\src\lib.rs:1672:5 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

warning: build failed, waiting for other jobs to finish... error: build failed

评论区

写评论
PokxCuq 2020-06-19 19:46

额,我cygwin64有的,不过不是cc.exe,就叫cc,里面就是gcc.exe的symlink。不过你直接把bin目录扔进去就行了吧。。。多省事 对以下内容的回复:

作者 chn-cutelotus 2020-06-19 13:11

我的mingw64目录下只有gcc.exe,没有cc.exe啊?

PokxCuq 2020-06-19 13:07

额,你要是看不懂那段,你开下机翻不就行了。上面那位给的网页里面说的不是很清楚了吗?把mingw(或msys2,cygwin64啥的)的bin目录(或直接用cc那个文件的路径,反正我是直接加bin目录,省事),加到PATH这个环境变量里面啊。。。怎么加环境变量就不用教了吧 对以下内容的回复:

不会用啊,能说下大概步骤吗?

作者 chn-cutelotus 2020-06-19 08:30

对以下内容的回复:

不会用啊,能说下大概步骤吗?

7sDream 2020-06-18 17:09

报错内容里写了:

https://github.com/alexcrichton/cc-rs#compile-time-requirements

1 共 5 条评论, 1 页