wasmcloud - getting started
First ensure you have installed the right tools. The easier way to do this is using ubuntu 24.04 that has the right tooling versions.
Install wash
curl -s https://packagecloud.io/install/repositories/wasmcloud/core/script.deb.sh | sudo bash
apt-get update
apt install wash
Check the version you have installed.
wash --version
Start to install the core components
install sudo apt install build-essential
install rustc
install golang manually as wasmcloud requires golang version 1.23.
export GO_VERSION="1.23.4"
export GO_ARCH="amd64"
curl -O -L "https://golang.org/dl/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz"
tar -xf "go${GO_VERSION}.linux-${GO_ARCH}.tar.gz"
sudo chown -R root:root ./go
mv -v go /usr/local
export PATH=$PATH:/usr/local/go/bin
Install tinygo
export TINYGO_VERSION="0.34.0"
export TINYGO_ARCH="amd64"
curl -O -L "https://github.com/tinygo-org/tinygo/releases/download/v${TINYGO_VERSION}/tinygo_${TINYGO_VERSION}_${TINYGO_ARCH}.deb"
sudo dpkg -i tinygo_${TINYGO_VERSION}_${TINYGO_ARCH}.deb
export PATH=$PATH:/usr/local/bin
Install WASM tools
cargo install wasm-tools
Once you have all the tools, lets start with creating an hello world program
wash new component hello --template-name hello-world-tinygo
cd hello
Try to do a golang build.
go build .
If you have issue, you need to resolve it here. Next, try to do
wash build
wash dev
Comments