Building Cardano Node

Hey guys, fairly new to this, however i’m getting an error when executing the following:

$CNODE_HOME/scripts/cabal-build-all.sh -o

I’m getting this in return as an error:

gcc: error: /home/pedro/git/cardano-node/dist-newstyle/build/x86_64-linux/ghc-8.10.2/cardano-api-1.25.1/build/Cardano/Api/ProtocolParameters.dyn_o: No such file or directory
gcc' failed in phase Linker’. (Exit code: 1)
cabal: Failed to build cardano-api-1.25.1 (which is required by
test:chairman-tests from cardano-node-chairman-1.25.1, test:cardano-node-test
from cardano-node-1.25.1 and others).

At a bit of a loss where to go from here, any help would be appreciated

Hello,

U are using cntools tutorial?

Cheers,

Hi Alex,

I’m using the one listed here Guild Operators Documentation

I setup the first server fine, the second one for some reason is giving me problems and not sure why

Ok,

Try

mkdir "$HOME/tmp";
cd "$HOME/tmp"
curl -sS -o prereqs.sh https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-
scripts/prereqs.sh
chmod 700 prereqs.sh
./prereqs.sh -f
. "${HOME}/.bashrc"

And after


cd ~/git
git clone https://github.com/input-output-hk/cardano-node
cd cardano-node

git fetch --tags --all
git checkout 1.25.1
git pull origin master

echo -e "package cardano-crypto-praos\n  flags: -external-libsodium-vrf" > cabal.project.local
$CNODE_HOME/scripts/cabal-build-all.sh

That worked - thanks Alex :slight_smile:

1 Like