Installing WebAssembly tooling
⚠️
Golem only supports specific versions of wasm-tools
and wit-bindgen
. Please make sure to
follow the guides carefully and install the correct versions.
You will need both wasm-tools
and wit-bindgen
to work with WebAssembly in a lot of languages.
You can either download these from GitHub or build from source using cargo.
wit-bindgen
Download the correct asset for your system from the GitHub Release (opens in a new tab).
Extract the downloaded archive:
❯ tar xvf wit-bindgen-0.37.0-x86_64-linux.tar.gz
x wit-bindgen-0.37.0-x86_64-linux/
x wit-bindgen-0.37.0-x86_64-linux/README.md
x wit-bindgen-0.37.0-x86_64-linux/LICENSE-APACHE
x wit-bindgen-0.37.0-x86_64-linux/wit-bindgen
x wit-bindgen-0.37.0-x86_64-linux/LICENSE-MIT
x wit-bindgen-0.37.0-x86_64-linux/LICENSE-Apache-2.0_WITH_LLVM-exception
Install to /usr/local/bin:
❯ sudo install -D -t /usr/local/bin wit-bindgen-0.37.0-x86_64-linux/wit-bindgen
wasm-tools
Download the correct asset for your system from the GitHub Release (opens in a new tab).
Extract the downloaded archive:
❯ tar xvf wasm-tools-1.223.0-x86_64-linux.tar.gz
x wasm-tools-1.223.0-x86_64-linux/
x wasm-tools-1.223.0-x86_64-linux/README.md
x wasm-tools-1.223.0-x86_64-linux/wasm-tools
x wasm-tools-1.223.0-x86_64-linux/LICENSE-APACHE
x wasm-tools-1.223.0-x86_64-linux/LICENSE-MIT
x wasm-tools-1.223.0-x86_64-linux/LICENSE-Apache-2.0_WITH_LLVM-exception
Install to /usr/local/bin:
❯ sudo install -D -t wasm-tools-1.223.0-x86_64-linux/wasm-tools