Hi,
I am setting up a stake pool on Ubuntu 22.04
I have successfully installed Cabal and dependencies and set Cabal library to version 3.4.0.0 and GHC to version 8.10.4
When I try to build Cardano node (for the first time on a new server), I get the following errors:
servername:~/git/cardano-node$ cabal build cardano-cli cardano-node
Warning: Requested index-state 2022-02-18T00:00:00Z is newer than
‘hackage.haskell.org’! Falling back to older state (2022-02-17T23:17:49Z).
Resolving dependencies…
cabal: Could not resolve dependencies:
[__0] trying: cardano-crypto-class-2.0.0 (user goal)
[__1] rejecting: cardano-crypto-class:+secp256k1-support (conflict: pkg-config
package libsecp256k1-any, not found in the pkg-config database)
[__1] rejecting: cardano-crypto-class:-secp256k1-support (manual flag can only
be changed explicitly)
[__1] fail (backjumping, conflict set: cardano-crypto-class,
cardano-crypto-class:secp256k1-support)
After searching the rest of the dependency tree exhaustively, these were the
goals I’ve had most trouble fulfilling: cardano-crypto-class,
cardano-crypto-class:secp256k1-support
How do I solve this?