From 62aabceb9fd9888e6bac78bd66dac20346131233 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Fri, 27 Oct 2023 09:52:49 +0300 Subject: [PATCH] fix: change Erigon windows doc --- .../ValidatorSetup/ValidatorInstalling/documentations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorInstalling/documentations.ts b/src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorInstalling/documentations.ts index a0e7d98d..47cd1529 100644 --- a/src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorInstalling/documentations.ts +++ b/src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorInstalling/documentations.ts @@ -54,7 +54,7 @@ export const DOCUMENTATIONS: Documentation = { [MAC]: '### Linux and MacOS\n\nHow to install Erigon in Linux and MacOS\n\nThe basic Erigon configuration is suitable for most users just wanting to run a node. For building the latest stable release use the following command:\n\n```bash\ngit clone --branch v2.52.5 --single-branch https://github.com/ledgerwatch/erigon.git\ncd erigon\nmake erigon\n```\n\nYou can check the [list of releases](https://github.com/ledgerwatch/erigon/releases) for release notes.', [WINDOWS]: - '### Build executable binaries natively for Windows\nBefore proceeding, ensure that the general requirements are met.\n**Installing Chocolatey**\nInstall Chocolatey package manager by following these instructions.\nOnce 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:\n```bash\nchoco -v\n```\nNow you need to install the following components: cmake, make, mingw by:\n```bash\nchoco install cmake make mingw\n```\n**Important note about Anti-Virus:** During the compiler detection phase of MinGW, some temporary executable files are generated to test the compiler capabilities. It\'s been reported that some anti-virus programs detect these files as possibly infected with the Win64/Kryptic.CIS Trojan horse (or a variant of it). Although these are false positives, we have no control over the 100+ vendors of security products for Windows and their respective detection algorithms and we understand that this may make your experience with Windows builds uncomfortable. To work around this, you can either set exclusions for your antivirus software specifically for thebuild\binmdbxCMakeFiles subfolder of the cloned repo, or you can run Erigon using the other two options below.\nMake 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”.\nClick the “Environment Variables...” button. \nLook down at the "System variables" box and double click on "Path" to add a new path.\nThen click on the "New" button and paste the path here: C:ProgramDatachocolateylibmingw\toolsinstallmingw64\bin\n**Clone the Erigon repository**\nOpen the Command Prompt and type the following:\n```bash\ngit clone --branch v2.49.2 --single-branch https://github.com/ledgerwatch/erigon.git \n```\n**Compiling Erigon**\nTo compile Erigon there are two alternative methods:\n1. **Compiling from the wmake.ps1 file in the File Explorer**\nThis 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"\nPowerShell will compile Erigon and all of its modules. All binaries are placed in the .\build\bin subfolder. \n2. **Using the PowerShell CLI**\nIn the search bar on your computer, search for “Windows PowerShell” and open it.\nChange the working directory to "erigon":\n```bash\ncd erigon\n```\nBefore proceeding make sure that the Set-Execution Policy PowerShell execution running policies are correct for your Windows account.\nNow you can compile Erigon and/or any of its component:\n```bash\n.wmake.ps1 [-target] \n```\nFor example, to build the Erigon executable write: \n```bash\n.wmake.ps1 erigon\n```\nAll binaries are placed in the .\build\bin subfolder.', + '# Windows\n## How to install Erigon in Windows\nWindows users can run Erigon in 3 possible ways:\n- [Build executable binaries natively for Windows](LINK)\n- [Use Docker](LINK)\n- [Use Windows Subsystem for Linux. (WSL)](LINK)\n\n## Build executable binaries natively for Windows\nBefore proceeding, ensure that the [general requirements](LINK) are met.\n### Installing Chocolatey\nInstall Chocolatey package manager by following [these instructions](LINK).\nOnce 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:\n```\nchoco -v\n```\nNow you need to install the following components: cmake, make, mingw by:\n```\nchoco install cmake make mingw\n```\nImportant note about Anti-Virus: During the compiler detection phase of MinGW, some temporary executable files are generated to test the compiler capabilities. It\'s been reported that some anti-virus programs detect these files as possibly infected with the Win64/Kryptic.CIS Trojan horse (or a variant of it). Although these are false positives, we have no control over the 100+ vendors of security products for Windows and their respective detection algorithms and we understand that this may make your experience with Windows builds uncomfortable. To work around this, you can either set exclusions for your antivirus software specifically for thebuild\\bin\\mdbx\\CMakeFiles subfolder of the cloned repo, or you can run Erigon using the other two options below.\nMake 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”.\nClick the “Environment Variables...” button.\nLook down at the "System variables" box and double click on "Path" to add a new path.\nThen click on the "New" button and paste the path here:\n```\nC:\\ProgramData\\chocolatey\\lib\\mingw\\tools\\install\\mingw64\\bin\n```\n### Clone the Erigon repository\nOpen the Command Prompt and type the following:\n```\ngit clone --branch v2.49.2 --single-branch https://github.com/ledgerwatch/erigon.git\n```\n### Compiling Erigon\nTo compile Erigon there are two alternative methods:\n- [Compiling from the wmake.ps1 file in the File Explorer](LINK)\n- [Using the PowerShell CLI](LINK)\n#### Compiling from the wmake.ps1 file in the File Explorer\nThis 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"\nPowerShell will compile Erigon and all of its modules. All binaries are placed in the .\\build\\bin\\ subfolder.\n#### Using the PowerShell CLI\nIn the search bar on your computer, search for “Windows PowerShell” and open it.\nChange the working directory to "erigon"\n```\ncd erigon\n```\nBefore proceeding make sure that the Set-Execution Policy PowerShell execution running policies are correct for your Windows account.\nNow you can compile Erigon and/or any of its component:\n```\n.\\wmake.ps1 [-target] \n```\nFor example, to build the Erigon executable write:\n```\n.\\wmake.ps1 erigon\n```\nAll binaries are placed in the .\\build\\bin\\ subfolder.\n\n## [Use Docker](LINK)\nSee docker-compose.yml.\n\n## Use Windows Subsystem for Linux (WSL)\nWSL enables running a complete GNU/Linux environment natively within Windows 10, providing Linux compatibility without the performance overhead of traditional virtualization.\nTo install WSL, follow [the instructions here](LINK).\nInformation: WSL Version 2 is the only version supported.\nUnder this option you can build Erigon as you would on a regular Linux distribution [see detailed instructions here](LINK).\nYou 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.\nWarning: 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.\nThis 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.', [LINUX]: '### Linux and MacOS\n\nHow to install Erigon in Linux and MacOS\n\nThe basic Erigon configuration is suitable for most users just wanting to run a node. For building the latest stable release use the following command:\n\n```bash\ngit clone --branch v2.52.5 --single-branch https://github.com/ledgerwatch/erigon.git\ncd erigon\nmake erigon\n```\n\nYou can check the [list of releases](https://github.com/ledgerwatch/erigon/releases) for release notes.', },