Installation

The Beacon chain can run on Linux, macOS, Windows, and Android. At the moment, Nimbus has to be built from source.

Time

The beacon chain relies on your computer having the correct time set, down to at most 0.5 seconds.

We recommended you run a high quality time service on your computer such as:

  • GPS
  • NTS (network time security, IETF draft)
  • Roughtime (google)

As a minimum, you should run an NTP client on the server.

If that makes no sense to you, don't worry. For testnets, just making sure your computer is set at the correct time should be fine.

External Dependencies

  • Developer tools (C compiler, Make, Bash, Git)
  • PCRE

Nim is not an external dependency, Nimbus will build its own local copy.

Linux

On common Linux distributions the dependencies can be installed with:

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

# Fedora
dnf install @development-tools pcre

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

macOS

Assuming you use Homebrew to manage packages

brew install pcre cmake

Windows

You can install the developer tools by following the instruction in our Windows dev environment section. It also provides a downloading script for prebuilt PCRE.

Android

  • Install the Termux app from FDroid or the Google Play store
  • Install a PRoot of your choice following the instructions for your preferred distribution. Note, the Ubuntu PRoot is known to contain all Nimbus prerequisites compiled on Arm64 architecture (common architecture for Android devices).

Assuming Ubuntu PRoot is used

apt install build-essential git libpcre3-dev

Next steps

Once you've installed the prerequisites, you're ready to move on to running a validator on Medalla.