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

Can't install Beaker #124

Open
quang-pham-1109 opened this issue Jul 30, 2023 · 8 comments
Open

Can't install Beaker #124

quang-pham-1109 opened this issue Jul 30, 2023 · 8 comments

Comments

@quang-pham-1109
Copy link

quang-pham-1109 commented Jul 30, 2023

I was trying to install Beaker using the command line and it got me this error:

error: failed to run custom build command for openssl-sys v0.9.90
Caused by:
  process didn't exit successfully: `C:\Users\MSI\AppData\Local\Temp\cargo-install1Tu1ky\release\build\openssl-sys-d580e298c5d5c208\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\\MSI\\AppData\\Local\\Temp\\cargo-install1Tu1ky\\release\\build\\openssl-sys-1f92168176e5a799\\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 called Result::unwrap() on an Err value: Error { kind: NotFound, message: "program not found" }, C:\Users\MSI\.cargo\registry\src\index.crates.io-6f17d22bba15001f\openssl-src-111.26.0+1.1.1u\src\lib.rs:504:39
  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 `beaker v0.1.6`, intermediate artifacts can be found at C:\Users\MSI\AppData\Local\Temp\cargo-install1Tu1ky

After some googling I found out that I need to download OpenSSL to fix this issue, but even after downloading OpenSSL, I still get this error. I have stucked on this for quite a wile now, so any help would be appreciated. Thanks!

@dzmitry-lahoda
Copy link
Contributor

try using nix, it has beaker with openssl https://github.com/informalsystems/cosmos.nix

@dzmitry-lahoda
Copy link
Contributor

oh but you are on windows. bad. install error: failed to run custom build command for openssl-sys v0.9.90 as it tells you. it is easy, just google and download

@dzmitry-lahoda
Copy link
Contributor

in nix I set OPENSSL_NO_VENDOR=3 whatever that means - it works than.

@sibsaurabh
Copy link

Hey @dzmitry-lahoda do you know if beaker can be installed in windows 10 OS?
I am getting the following error on trying to install it in windows, i got the same error as listed above, then i installed strawberry perl now this is coming:
error[E0433]: failed to resolve: could not find unix in os
std::os::unix::fs::symlink("../.beaker", ".beaker")
| ^^^^ could not find unix in os

@dzmitry-lahoda
Copy link
Contributor

i dunno
BUT
oh, tbh, even if you somehow manage to do so, all other cosmos tools will work either on linux or mac.

so imho start using wsl2 with vscode in wsl. it would work pretty well.

@dzmitry-lahoda
Copy link
Contributor

after 2 years of WSL with Rust I just went 100% linux. Linux hardware support now is first class.

@dzmitry-lahoda
Copy link
Contributor

Sorry for offtop, may be my suggestion add to README.md Use WSL2 on windows and done

@sibsaurabh
Copy link

Thanks for the response. I also generally prefer using linux, Adding to readme i think would be best.

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

3 participants