Getting ready to install the Cardano Node (v9.2.1)
Now the most complicated part (not so complicated if you follow this guide :) ) - is the installation process!
Last updated
Now the most complicated part (not so complicated if you follow this guide :) ) - is the installation process!
Last updated
to successfully install (compile) the Carano node, we need to be sure that we have all the necessary ingredients! To get them (install) type the following commands:
This will install all the necessary software packages for our next steps.
As the Cardano node is using cabal, so let's install it as well. We will use the recommended version 3.6.2.0 and install it to our local bin folder (.local/bin)
to install cabal, we will be using ghcup (ghcup is an installer for the general-purpose language Haskell), for more info you can check: https://www.haskell.org/ghcup/
This Haskell installation script will ask for input:
Press ENTER to continue
When asked "Do you want ghcup to automatically add the required PATH variable to "/home/cardano/.bashrc?" press "A"
When asked "Do you want to install haskell-language-server (HLS)?" Answer "No" (by pressing "N")
When asked "Do you want to install stack?" Answer "No" (by pressing "N")
Press ENTER to proceed with the installation
When the installation is finished, you should see the following screen:
let's reload environment variables:
Let's install the 3.8.1.0 version and set this one as the default:
Let's check which version we have installed
you should see version 3.8.1.0
You should now have the cabal installed in /home/cardano/.ghcup/bin folder.
Let's move to the next step - installing GHC - the Haskell code compiler (Cardano node is based on the Haskell programming language).
As we already installed the handy ghcup tool, then this is done super easily:
After a short while, you should have GHC installed! Let's set it as the default version:
And check if everything has gone as planned:
You should see:
One more thing we need is the Libsodium libraries so let's do this! let's create a git folder where we will be compiling libsodium library from the source code:
Download and install libsodium library ( we need a specific branch of the library, so follow the guide)
Starting from Cardano Node v8.0.0 needs a newer version of libsodium
Let's add the following PATHs to our .bashrc file and load them.
additionally, we need the libsodium-dev package installed on our system
Let's move to the next step - the actual installation of Cardano Node!