Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: failed to run custom build command for openssl-sys v0.9.97 #73

Open
Eren-Yeaager opened this issue Dec 7, 2023 · 4 comments
Open

Comments

@Eren-Yeaager
Copy link

I am currently on my Windows machine. the exact error that occurred during the installation was

error: failed to run custom build command for openssl-sys v0.9.97

Caused by:
process didn't exit successfully: C:\Users\SASWAT1\AppData\Local\Temp\cargo-installW4uxhg\release\build\openssl-sys-a52d4764de55824a\build-script-main (exit code: 101)
--- stdout
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\SASWAT
1\AppData\Local\Temp\cargo-installW4uxhg\release\build\openssl-sys-8d11540cf2537ff2\out\openssl-build\install" "--openssldir=SYS$MANAGER:[OPENSSL]" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "no-capieng" "no-asm" "VC-WIN64A"

--- stderr
thread 'main' panicked at C:\Users\saswat marpureddy.cargo\registry\src\index.crates.io-6f17d22bba15001f\openssl-src-300.1.6+3.1.4\src\lib.rs:585:9:

Error configuring OpenSSL build:
Command: "perl" "./Configure" "--prefix=C:\Users\SASWAT~1\AppData\Local\Temp\cargo-installW4uxhg\release\build\openssl-sys-8d11540cf2537ff2\out\openssl-build\install" "--openssldir=SYS$MANAGER:[OPENSSL]" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "no-capieng" "no-asm" "VC-WIN64A"
Failed to execute: program not found

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 bos-cli v0.3.6 (https://github.com/FroVolod/bos-cli-rs#46037ed0), intermediate artifacts can be found at C:\Users\SASWAT~1\AppData\Local\Temp\cargo-installW4uxhg

@frol
Copy link
Collaborator

frol commented Dec 7, 2023

@Eren-Yeaager thanks for reporting it. We don’t have Windows boxes to debug it and our CI for Windows works just fine, so I don’t know how to help you here. Does pre-compiled binary installation work for you? https://github.com/bos-cli-rs/bos-cli-rs/releases/tag/v0.3.6

@Eren-Yeaager
Copy link
Author

@frol Yeah i tried the pre-compiled binary installing bos-cli got added to my package.json , but when i run npm run deploy
it showing this error
Please select an app:

  1. proofOfVibes
    Enter the number of the app you want to use: 1
    'C:\Users\saswat' is not recognized as an internal or external command,
    operable program or batch file.
    Error deploying proofOfVibes widgets:
    Command failed: C:\Users\saswat marpureddy\vibes-components\vibes-components\node_modules\bos-workspace\node_modules.bin\bos components deploy 'saswatm.near' sign-as 'saswatm.near' network-config mainnet

I have also changed to my near account for deployment in bos.config.json

@frol
Copy link
Collaborator

frol commented Dec 8, 2023

From the error it seems that you have a space in the folder name “saswat marpureddy” and it seems that the path is not quoted which causes it to attempt to run c:\Users\saswat as a command and treat the rest as just an argument. Please, include your package.json here.

@frol
Copy link
Collaborator

frol commented Dec 8, 2023

As a quick workaround, move your project to a folder which doesn’t have spaces in the path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants