Reputation: 11824
After following the compilation instructions for my Parity Substrate based node, I repeatedly run into the following issue:
./build.sh: line 12: wasm-gc: command not found
I cannot build parity substrate runtimes because the wasm-gc command isn't found; what can I do?
Upvotes: 1
Views: 397
Reputation: 11824
There are two potential reasons why you would run into that issue.
To do so, simply use cargo:
cargo install --git https://github.com/alexcrichton/wasm-gc
This will install wasm-gc binary in your $CARGO_HOME
.
$PATH
If you are certain the wasm-gc binary is installed correctly, make sure you have the cargo binaries in your $PATH
, e.g., by setting:
export PATH=$PATH:$HOME/.cargo/bin
It's recommended to append this line to your .bashrc
or .zshrc
if you plan on using this more regularly.
Upvotes: 2