q9f
q9f

Reputation: 11824

I cannot build parity substrate runtimes because the wasm-gc command isn't found

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

Answers (1)

q9f
q9f

Reputation: 11824

There are two potential reasons why you would run into that issue.

1 make sure wasm-gc is installed

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.

2 make sure cargo binaries are in your $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

Related Questions