nwaku/docs/operators/how-to/build.md

1.4 KiB

Build nwaku

Nwaku can be built on Linux and macOS. Windows support is experimental.

Installing dependencies

Cloning and building nwaku requires the usual developer tools, such as a C compiler, Make, Bash and Git.

Linux

On common Linux distributions the dependencies can be installed with

# Debian and Ubuntu
sudo apt-get install build-essential git

# Fedora
dnf install @development-tools

# Archlinux, using an AUR manager
yourAURmanager -S base-devel

macOS

Assuming you use Homebrew to manage packages

brew install cmake

Building nwaku

1. Clone the nwaku repository

git clone https://github.com/status-im/nwaku
cd nwaku

2. Make the wakunode2 target

# The first `make` invocation will update all Git submodules.
# You'll run `make update` after each `git pull`, in the future, to keep those submodules up to date.
make wakunode2

This will create a wakunode2 binary in the ./build/ directory.

Note: Building wakunode2 requires 2GB of RAM. The build will fail on systems not fulfilling this requirement.

Setting up a wakunode2 on the smallest digital ocean droplet, you can either

  • compile on a stronger droplet featuring the same CPU architecture and downgrade after compiling, or
  • activate swap on the smallest droplet, or
  • use Docker.