Hello, I am practicing to build Cardano-node.
When i try to make it with CNTOOLS, I found some error as below
Got NamedPackage ouroboros-consensus-cardano-tools
CallStack (from HasCallStack):
error, called at src/Distribution/Client/CmdInstall.hs:474:33 in main:Distribution.Client.CmdInstall
In Guild operators website, This error is mentioned.
https://cardano-community.github.io/guild-operators/Build/node-cli/
but i do not know exactly what to do with it.
Is there anyone to help newbie making it?
OS : ubuntu 22.04 LTS
Try this for mainnet
cd "$HOME/tmp"
curl -sS -o guild-deploy.sh https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-scripts/guild-deploy.sh
chmod 700 guild-deploy.sh
./guild-deploy.sh -s f -b master
source "${HOME}"/.bashrc
then try
cd ~/git
git clone https://github.com/input-output-hk/cardano-node
cd cardano-node
git fetch --tags --all
git checkout 1.35.5
echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" > cabal.project.local
$CNODE_HOME/scripts/cabal-build-all.sh
Sincerely appreciate for your reply!
but it does not work
I did same as your comment
Only me has this kind of problem?
Then, can u try to upgrade the OS or to try with 20.04 version. Is this a custom OS?
but, I see the bin were copied and instaled
What is the issue here?
Nope, it is initial ubuntu 22.04. I will try it with 20.04.
I am afraid that this error affects next step baddly.
you can download the bin files
cd ~/tmp
./guild-deploy.sh -s d
then unzip the archive and move the files inside /home/user/.local/bin
mayak
8 February 2023 09:19
9
I struggle with the exact same issue when compiling from source.
In fact, it’s not just me but other guys as well.
i got this msg when trying to upgrade so i ended up just rolling back to 1.35.3 how do i fix this so i can upgrade to 1.35.4
Got NamedPackage ouroboros-consensus-cardano-tools
CallStack (from HasCallStack):
error, called at src/Distribution/Client/CmdInstall.hs:474:33 in main:Distribution.Client.CmdInstall
No matter what I try, I get the following error when running:
`cabal install exe:cardano-node --overwrite-policy=always --install-method=copy --installdir=/build`
<...>
Got NamedPackage ouroboros-consensus-cardano-tools
CallStack (from HasCallStack):
error, called at src/Distribution/Client/CmdInstall.hs:474:33 in main:Distribution.Client.CmdInstall
I tried with:
Ubuntu 20.04
Ubuntu 22.04
libsodium as package
libsodium compiled from source
GHC and cabal compiled from source
GHC and cabal installation using GHCUP
cabal version 3.6.0.0
cabal version 3.6.2.0
cabal version 3.8.1.0
GHC version 8.10.7
GHC version 9.2.5
Interestingly, pretty much ALL my attempts work for cardano-node 1.35.3
but NOT 1.35.4
and 1.35.5
.
Any hints are appreciated.
you can download the bin files (cardano-node and cardano-cli) and move them to this location
which cabal
if you downloaded the guild-deploy.sh script run ./guild-deploy -s d
unzip the file move the files and restart the node
Cheers,
mayak
8 February 2023 09:41
11
Thank you for the hint. I am using the (pre-compiled) binaries on my regular nodes, but I’d like to cherry-pick a specific commit to fix an issue I have with running P2P and Ogmios.
mayak
8 February 2023 10:04
12
Alright, I was able to find my issue. The documentation gave me a hint .
Note, we avoid using cabal install
because that method prevents the installed binaries from reporting the git revision with the --version
switch.
For anyone experiencing this issue, change this:
cabal update
cabal install exe:cardano-node --overwrite-policy=always --install-method=copy --installdir=/some/path/
To this:
cabal update
cabal build all
Or this:
cabal update
cabal build exe:cardano-node
Edit: Interestingly, the cabal install
command used to work with 1.35.3
but not 1.35.4
or 1.35.5
.