Building Nethermind

IDE (optional)

SDKs

To build Nethermind 1.9.* releases you will need .NET SDK 3.1. You can download it here (make sure you select correct platform and distribution):
Download .NET (Linux, macOS, and Windows)
Microsoft
.NET SDK for Linux, macOS, Windows
For Nethermind 1.10.* releases you are going to need .NET SDK 5.0 that can be downloaded from the url above.

Linux

Linux (Ubuntu 18.04+/Debian 10)
Linux (Ubuntu 16.04)
Linux (CentOS 8)
Linux (Fedora 31)
1
sudo apt-get update && sudo apt-get install libsnappy-dev libc6-dev libc6
Copied!
1
sudo apt-get update && sudo apt-get install libsnappy-dev libc6-dev libc6 && \
2
sudo add-apt-repository ppa:ubuntu-toolchain-r/test && \
3
sudo apt-get update && \
4
sudo apt-get install gcc-6 g++-6 && \
5
sudo apt install libzstd1
Copied!
1
sudo yum install -y glibc-devel && \
2
sudo yum install -y bzip2-devel && \
3
sudo yum install -y libzstd && \
4
sudo ln -s `find /usr/lib64/ -type f -name "libbz2.so.1*"` /usr/lib64/libbz2.so.1.0 && \
5
sudo ln -s `find /usr/lib64/ -type f -name "libsnappy.so.1*"` /usr/lib64/libsnappy.so
Copied!
1
sudo yum install -y glibc-devel && \
2
sudo yum install -y snappy && \
3
sudo yum install -y libzstd && \
4
sudo ln -s `find /usr/lib64/ -type f -name "libbz2.so.1*"` /usr/lib64/libbz2.so.1.0 && \
5
sudo ln -s `find /usr/lib64/ -type f -name "libsnappy.so.1*"` /usr/lib64/libsnappy.so
Copied!

MacOS

1
brew install gmp snappy lz4 zstd
Copied!

Windows

All Platforms

If dotnet command is not found then probably you forgot to install SDK (see instructions above)
On Linux distributions we suggest that at this stage you start screen so you can go back to session with screen -rd command later on
Clone the Nethermind repository and its submodules, then build Nethermind in Release or Debug mode.
1
git clone https://github.com/NethermindEth/nethermind.git --recursive
2
cd nethermind/src/Nethermind
3
dotnet build Nethermind.sln -c Release
Copied!
Launch goerli testnet for quick sync and testing
1
cd Nethermind.Runner
2
dotnet run --no-build -c Release -- --config goerli
Copied!
You can confirm the latest block of the Goerli tetsnet here:
https://blockscout.com/eth/goerli/
blockscout.com
or to run Ethereum Mainnet:
1
cd Nethermind.Runner
2
dotnet run --no-build -c Release -- --config mainnet
Copied!

Potential Issues

If you have some previous pre-release versions of .NET Core installed they may cause conflicts. Your case might be quite unique so best to search for help online.
Last modified 9mo ago