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.