I followed the Linux tutorial at
https://developers.cardano.org/docs/get-started/installing-cardano-node
and I am getting the following error when I run cabal build all
Unrecognized stanza on line 139
/home/xxx/.cabal/config: Unrecognized field installdir on line 116
Warning: Unknown/unsupported 'ghc' version detected (Cabal 2.4.0.1 supports
'ghc' version < 8.7): /home/xxx/.ghcup/bin/ghc-8.10.4 is version 8.10.4
cabal: No cabal file found.
Please create a package description file <pkgname>.cabal
xxx@MSI:~/cardano-src/cardano-node$ echo "package cardano-crypto-praos" >> cabal.project.local
echo " xxx@MSI:~/cardano-src/cardano-node$ echo " flags: -external-libsodium-vrf" >> cabal.project.local
danastos@MSI:~/cardano-src/cardano-node$ cabal build all
Warning: The build command is a part of the legacy v1 style of cabal usage.
Please switch to using either the new project style and the new-build command
or the legacy v1-build alias as new-style projects will become the default in
the next version of cabal-install. Please file a bug if you cannot replicate a
working v1- use case with the new-style commands.
For more information, see: https://wiki.haskell.org/Cabal/NewBuild
Warning: /home/xxx/.cabal/config: Unrecognized stanza on line 139
/home/xxx/.cabal/config: Unrecognized field installdir on line 116
cabal: No cabal file found.
Please create a package description file <pkgname>.cabal
xxx@MSI:~/cardano-src/cardano-node$
What am I supposed to do here?
cabal
are you using? Did you useghcup
to install the latest version ofghc
? Did youcd
in thecardano-src
folder (theNo cabal file found
tells me you're not in the correct folder). In your question, it would be very helpful if you could describe every step you took until it breaks and show the terminal outputs for each step.ghcup install ghc 8.10.4
andghcup set ghc 8.10.4
. Did you do that?