0

This in on Win 10.

I started following the instructions on Mozilla/MDN at: "https://developer.mozilla.org/en-US/docs/WebAssembly/Rust_to_wasm#rust_environment_setup" to install the wasm-pack crate for Rust-webassembly. Below is the output showing some context before I got the error. What do I do? I never explicitly installed Perl on this laptop although versions 5.24.1, 5.32.0 and 5.36.0 seem to have gotten installed by git or Atlassian. The error message about using a different version Perl is less than helpful -- it could have included a recommended version.

C:\Users\ {{user}} \ {{OneDrive}} \Documents\Src\rust>cargo install wasm-pack
    Updating crates.io index
  Downloaded wasm-pack v0.10.3
  Downloaded 1 crate (423.0 KB) in 8.12s
  Installing wasm-pack v0.10.3
  Downloaded failure v0.1.8

...etc...

  Downloaded foreign-types-shared v0.1.1
  Downloaded failure_derive v0.1.8
  Downloaded 212 crates (29.3 MB) in 17.16s (largest was `openssl-src` at 5.1 MB)
   Compiling autocfg v1.1.0
   Compiling proc-macro2 v1.0.51
   Compiling quote v1.0.23

...etc...

   Compiling stable_deref_trait v1.2.0
   Compiling unicode-segmentation v1.10.1
   Compiling curl v0.4.44
   Compiling smallvec v1.10.0
   Compiling owning_ref v0.4.1
error: failed to run custom build command for `openssl-sys v0.9.80`

Caused by:
  process didn't exit successfully: `C:\Users\ {{user}} \AppData\Local\Temp\cargo-installhheHt7\release\build\openssl-sys-70cd7ab790c7ae4b\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\\ {{user}} \\AppData\\Local\\Temp\\cargo-installhheHt7\\release\\build\\openssl-sys-73473354f306d0a3\\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"
  Configuring OpenSSL version 1.1.1t (0x1010114fL) for VC-WIN64A
  Using os-specific seed configuration

  --- stderr

  ******************************************************************************
  This perl implementation doesn't produce Windows like paths (with backward
  slash directory separators).  Please use an implementation that matches your
  building platform.

  This Perl version: 5.36.0 for x86_64-msys-thread-multi
  ******************************************************************************
  thread 'main' panicked at '


  Error configuring OpenSSL build:
      Command: "perl" "./Configure" "--prefix=C:\\Users\\ {{user}} \\AppData\\Local\\Temp\\cargo-installhheHt7\\release\\build\\openssl-sys-73473354f306d0a3\\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"
      Exit status: exit code: 127


      ', C:\Users\ {{user}} \ {{OneDrive}} \Documents\Src\.cargo\registry\src\github.com-1ecc6299db9ec823\openssl-src-111.25.1+1.1.1t\src\lib.rs:509:13
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `wasm-pack v0.10.3`, intermediate artifacts can be found at `C:\Users\ {{user}} \AppData\Local\Temp\cargo-installhheHt7`

C:\Users\ {{user}} \ {{OneDrive}} \Documents\Src\rust>
mnemotronic
  • 856
  • 1
  • 9
  • 16
  • 2
    This is a different error, but have you tried the instructions in this question? https://stackoverflow.com/questions/68646684/cant-install-cargo-wasm-pack – TachyonicBytes Mar 01 '23 at 20:03

0 Answers0