I‘m working on a project which depency on openssl-sys in Windows, but it didn't work.There is error:
error: failed to run custom build command for
openssl-sys v0.9.78
Caused by:
process didn't exit successfully:C:\Users\Administrator\Downloads\espflash-main\target\debug\build\openssl-sys-c1a48d73a93e76d4\build-script-main
(exit code: 101)
--- stdout
cargo:rustc-cfg=const_fn
cargo:rustc-cfg=openssl
cargo:rerun-if-env-changed=X86_64_PC_WINDOWS_MSVC_OPENSSL_NO_VENDOR
X86_64_PC_WINDOWS_MSVC_OPENSSL_NO_VENDOR unset
cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR
OPENSSL_NO_VENDOR unset
running "perl" "./Configure" "--prefix=C:\Users\Administrator\Downloads\espflash-main\target\debug\build\openssl-sys-40293905b51895d6\out\openssl-build\install" "--openssldir=SYS$MANAGER:[OPENSSL]" "no-dso" "no-shared" "no-ssl3" "no-unit-test" "no-comp" "no-zlib" "no-zlib-dynamic" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "no-engine" "no-asm" "VC-WIN64A"
--- stderr
thread 'main' panicked at 'calledResult::unwrap()
on anErr
value: Error { kind: NotFound, message: "program not found" }', C:\Users\Administrator.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\openssl-src-111.24.0+1.1.1s\src\lib.rs:496:39
Then I reference the issue in github, following the steps, I install MSYS2, and install MINGW64 and its tools, but get the same result. Indeed, I configue the enviroment varible like this. But still didn't work......TAT
Is there a solution? I'm a new man for rust, if there are some obvious mistakse , please give me a favor.Thank all of you!