beaker icon indicating copy to clipboard operation
beaker copied to clipboard

Can't install Beaker

Open quang-pham-1109 opened this issue 1 year ago • 8 comments

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!

quang-pham-1109 avatar Jul 30 '23 09:07 quang-pham-1109

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

dzmitry-lahoda avatar Aug 16 '23 20:08 dzmitry-lahoda

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 avatar Aug 16 '23 20:08 dzmitry-lahoda

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

dzmitry-lahoda avatar Aug 16 '23 20:08 dzmitry-lahoda

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

sibsaurabh avatar Jan 18 '24 13:01 sibsaurabh

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 avatar Jan 18 '24 14:01 dzmitry-lahoda

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

dzmitry-lahoda avatar Jan 18 '24 15:01 dzmitry-lahoda

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

dzmitry-lahoda avatar Jan 18 '24 15:01 dzmitry-lahoda

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

sibsaurabh avatar Jan 18 '24 16:01 sibsaurabh