Command: cabal build all falling back to older state

i am trying to install cardano-wallet by following this doc [Installing cardano-wallet | Cardano Developer Portal]

and getting this error while performing cabal build all

here is error that I am getting,

HEAD is now at 00ebe72 Added support for aeson-2.0, text-2.0, and GHC 9.2
Warning: The package list for '' is 146 days old.
Run 'cabal update' to get the latest list of available packages.
Warning: Requested index-state 2022-05-18T00:00:00Z is newer than
''! Falling back to older state (2022-03-02T05:17:47Z).
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: cardano-wallet-2022.7.1 (user goal)
[__1] next goal: blockfrost-client-core (dependency of cardano-wallet)
[__1] rejecting: blockfrost-client-core- (conflict: cardano-wallet =>
blockfrost-client-core>=0.4 && <0.5)
[__1] skipping: blockfrost-client-core- (has the same characteristics
that caused the previous version to fail: excluded by constraint '>=0.4 &&
<0.5' from 'cardano-wallet')
[__1] fail (backjumping, conflict set: blockfrost-client-core, cardano-wallet)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: cardano-wallet, blockfrost-client-core

Using cardano-node version 1.35.0 and and trying to install cardano-wallet v2022-7-1

1 Like

cabal builds with GHC are a pain even for seasoned developers.

I highly recommend using the docker or docker compose options unless you need to make changes to Cardano itself or you just want to go through the process of compiling the universe from scratch for learning purposes.

docker CLI:

docker pull inputoutput/cardano-node
docker run -v /data -e NETWORK=testnet inputoutput/cardano-node:latest

docker pull inputoutput/cardano-wallet
docker run --rm inputoutput/cardano-wallet:latest

docker compose:

NETWORK=testnet docker-compose up

As you can see in the compose config file from that wget download command it’ll spin up the node and wallet with some default configuration all at once.

There were some cool people on here doing all this and a bag of virtual chips in kubernetes with helm charts last year as well: Announcing Helm Charts to Run Cardano nodes in Kubernetes