Skip to main content

Posts

Showing posts with the label linux

How to setup WASI SDK on Linux?

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.