失败(回跳,冲突集:cardano-crypto-class)

fail (backjumping, conflict set: cardano-crypto-class)

我正在尝试通过 this 文章将 cardano-node 安装到我的 MacOS。

cabal build all 命令后我得到:

➜  cardano-node git:(4c5944295) cabal build all
Warning: Requested index-state 2021-04-30T00:00:00Z is newer than
'hackage.haskell.org'! Falling back to older state (2021-04-29T23:07:55Z).
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] next goal: cardano-crypto-class (user goal)
[__0] rejecting: cardano-crypto-class-2.0.0 (conflict: pkg-config package
libsodium-any, not found in the pkg-config database)
[__0] fail (backjumping, conflict set: cardano-crypto-class)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: cardano-crypto-class

这是重要的部分:

conflict: pkg-config package libsodium-any, not found in the pkg-config database

您需要安装libsodium

我认为 cabal configure --with-compiler=ghc-8.10.4 步骤应该因同样的错误而失败。也许你错过了:https://developers.cardano.org/docs/get-started/installing-cardano-node/#configuring-the-build-options. And maybe you also need to retry the "downloading & compiling" steps: https://developers.cardano.org/docs/get-started/installing-cardano-node/#downloading--compiling.