osmosis-labs / beaker

Beaker helps streamlining CosmWasm development workflow.
Apache License 2.0
106 stars 30 forks source link

Can't install Beaker #124

Open quang-pham-1109 opened 1 year ago

quang-pham-1109 commented 1 year ago

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 commented 1 year ago

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

dzmitry-lahoda commented 1 year ago

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 commented 1 year ago

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

sibsaurabh commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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

dzmitry-lahoda commented 10 months ago

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

sibsaurabh commented 10 months ago

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