Setting up the WASI SDK is the simplest on Linux like Ubuntu. You just need to run few lines of commands. That's it!
Open the Linux terminal and go to a directory where you can download the payload. Usually, I prefer downloading the stuffs in /home
directory but it's up to you.
Run these commands to download and install the WASI SDK
curl -O -L https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/wasi-sdk_20.0_amd64.deb
sudo dpkg -i wasi-sdk_20.0_amd64.deb
export PATH=/opt/wasi-sdk/bin:$PATH
export CC=/opt/wasi-sdk/bin/clang
export CXX=/opt/wasi-sdk/bin/clang++
Now you are ready to use WASI SDK which you can check by this command, clang -v
. If it prints the version info then all is well.
Comments
Post a Comment