Step 1: Install Required Dependencies

Before you begin, ensure your server has all the necessary dependencies.

sudo apt update
sudo apt upgrade -y
sudo apt install -y build-essential libssl-dev libcurl4-openssl-dev pkg-config git

Step 2: Install Go (Golang)

Waku is written in Go, so you will need Go installed on your machine.

  1. Download and install Go:
wget <https://golang.org/dl/go1.19.4.linux-amd64.tar.gz>
sudo tar -C /usr/local -xvzf go1.19.4.linux-amd64.tar.gz

  1. Add Go to the system path:
echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc
source ~/.bashrc

  1. Verify the Go installation:
go version

You should see an output like:

go version go1.19.4 linux/amd64

Step 3: Clone Waku Repository

Now, we need to clone the Waku repository from GitHub.

cd ~
git clone <https://github.com/waku-org/waku.git>
cd waku

Step 4: Build Waku Node

In the Waku repository, you will find everything you need to build the Waku node. Follow these steps:

  1. Ensure you're in the correct directory:
cd waku