osmosis-labs / beaker

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

beaker warm: Error: No such file or directory (os error 2) on macOS #93

Closed miohtama closed 2 years ago

miohtama commented 2 years ago

If you get the following error on macOS: (M1)

Error: No such file or directory (os error 2)

when running:

beaker wasm deploy counter --signer-account test1 --no-wasm-opt --raw '{ "count": 0 }' --admin signer

or

beaker wasm build

Make sure you have Rust installed with wasm support using rustup. Rust from Homebrew might not work about.

How to fix:

brew uninstall rust  # rustup cannot coexist with brew installed rust
brew install rustup
rustup target add wasm32-unknown-unknown
iboss-ptk commented 2 years ago

Probably not need the last line to fix the issue but it does requires rustup. Thank you will add requirement on the README.md

https://github.com/osmosis-labs/beaker/blob/v0.0.7/packages/cli/src/modules/wasm/ops/build.rs#L18,L44