Credits to: GliTcH_[1love], Adam Dean, and the cool cats of Stakepool247

sudo apt install libsodium-dev pkg-config           <-- install libsodium-dev on Ubuntu, libsodium-devel on RHEL/CentOS (only needed on first install)

#cardano-node located in git on FIRE core, located on home for SWAG
cd cardano-node

cabal update

echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" > cabal.project.local

rm -rf dist-newstyle/*

rm -rf db/*

cabal clean

git fetch --all --tags
git tag
git checkout tags/1.20.0

cabal install cardano-node cardano-cli               <-- Seems this step is only needed for fresh installs to make directory structure below match

cabal build all

for relays :


cp -p dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-node-1.20.0/x/cardano-node/build/cardano-node/cardano-node ~/.local/bin/
cp -p dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-cli-1.20.0/x/cardano-cli/build/cardano-cli/cardano-cli ~/.local/bin/

For cores:  

cp -p dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-node-1.20.0/x/cardano-node/build/cardano-node/cardano-node ~/.cabal/bin/

cp -p dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-cli-1.20.0/x/cardano-cli/build/cardano-cli/cardano-cli ~/.cabal/bin/

Contact Us

  • Twitter
  • Facebook
  • Telegram
  • YouTube
  • Instagram