Windows
How to install Erigon in Windows
Last updated
Was this helpful?
How to install Erigon in Windows
Last updated
Was this helpful?
There are 3 options for running Erigon on Windows, listed from easiest to most difficult installation:
: Use the pre-built Windows executables that can be natively run on Windows without any emulation or containers required.
: Run Erigon in a Docker container for isolation from the host Windows system. This avoids dependencies on Windows but requires installing Docker.
: Install the Windows Subsystem for Linux (WSL) to create a Linux environment within Windows. Erigon can then be installed in WSL by following the Linux build instructions. This provides compatibility with Linux builds but involves more setup overhead.
Before proceeding, ensure that the general are met.
Install Chocolatey package manager by following these .
Once your Windows machine has the above installed, open the Command Prompt by typing "cmd" in the search bar and check that you have correctly installed Chocolatey:
Now you need to install the following components: cmake
, make
, mingw
by:
Make sure that the Windows System Path variable is set correctly. Use the search bar on your computer to search for “Edit the system environment variable”.
Click the “Environment Variables...” button.
Look down at the "System variables" box and double click on "Path" to add a new path.
Then click on the "New" button and paste the path here:
Open the Command Prompt and type the following:
To compile Erigon there are two alternative methods:
This is the fastest way which normally works for everyone. Open the File Explorer and go to the Erigon folder, then right click the wmake
file and choose "Run with PowerShell".
PowerShell will compile Erigon and all of its modules. All binaries are placed in the .\build\bin\
subfolder.
In the search bar on your computer, search for “Windows PowerShell” and open it.
Change the working directory to "erigon"
Now you can compile Erigon and/or any of its component:
.\wmake.ps1 [-target] <targetname>
For example, to build the Erigon executable write:
All binaries are placed in the .\build\bin\
subfolder.
WSL enables running a complete GNU/Linux environment natively within Windows 10, providing Linux compatibility without the performance overhead of traditional virtualization.
You can also point your data to any of the mounted Windows partitions ( e.g. /mnt/c/[...]
, /mnt/d/[...]
etc..) but be aware that performance will be affected: this is due to the fact that these mount points use DrvFS
, which is a network file system, and additionally MDBX locks the db for exclusive access, meaning that only one process at a time can access the data.
Warning: the remote db RPCdaemon is an experimental feature and is not recommended, it is extremely slow. It is highly preferable to use the embedded RPCdaemon.
This has implications for running rpcdaemon
, which must be configured as a remote DB, even if it is running on the same machine. If your data is hosted on the native Linux filesystem instead, there are no restrictions. Also note that the default WSL2 environment has its own IP address, which does not match the network interface of the Windows host: take this into account when configuring NAT on port 30303 on your router.
Make sure you have Git installed, see .
Before proceeding make sure that the PowerShell execution running policies are correct for your Windows account.
You can also build other binaries as , , and .
See .
To install WSL, follow these instructions: .
Under this option you can build Erigon as you would on a regular Linux distribution (see detailed instructions ).