After you finish installing GHC and Cabal successfully, you can compile Cardano Node from source code.
To compile Cardano Node:
In a terminal window on the computer hosting your block-producing node, type the following command to navigate to the working directory that you created in the procedure :
To download Cardano Node source code, type:
To switch the repository that you downloaded to your local computer in step 2 to the latest tagged commit, type:
To adjust the project configuration to disable optimization and set the recommended compiler version, type the following command where <GHCVersionNumber>
is the GHC version that you set in the procedure :
To produce executable cardano-node
and cardano-cli
binaries, type:
To copy the cardano-node
and cardano-cli
binaries that you produced in step 7 into the /usr/local/bin
directory, type:
On each computer hosting a relay node for your stake pool, repeat steps 1 to 8
To confirm that the version installed on your computer matches the latest release available in the Cardano Node , type: