$ cabal build all - success!
But $ cabal install --installdir ~/.local/bin cardano-cli cardano-node:
Resolving dependencies…
cabal: Could not resolve dependencies:
[__0] unknown package: cardano-cli (user goal)
[__0] fail (backjumping, conflict set: cardano-cli)
After searching the rest of the dependency tree exhaustively, these were the
goals I’ve had most trouble fulfilling: cardano-cli
Then $ cp -p dist-newstyle/build/x86_64-linux/ghc-8.10.2/cardano-node-1.25.1/x/cardano-node/build/cardano-node/cardano-node ~/.local/bin/:
cp: cannot stat ‘dist-newstyle/build/x86_64-linux/ghc-8.10.2/cardano-node-1.25.1/x/cardano-node/build/cardano-node/cardano-node’: No such file or directory
@erikd I have cardano-node running on macos 11.2.3 ok. In cardano-node/cardano-cli I run cabal build all and got this error.
cabal: Failed to build cardano-cli-1.26.1-inplace-cardano-cli.
Failed to build cardano-cli-1.26.1 because it depends on cardano-cli-1.26.1
which itself failed to build.
Failed to build cardano-cli-1.26.1-inplace-cardano-cli-test.
Failed to build cardano-client-demo-0.1.0.0-inplace-scan-blocks.
Failed to build cardano-client-demo-0.1.0.0-inplace-scan-blocks-pipelined.
Failed to build cardano-node-1.26.1-inplace-cardano-node.
Failed to build cardano-node-chairman-1.26.1-inplace-cardano-node-chairman.
Failed to build cardano-node-chairman-1.26.1 because it depends on
cardano-node-chairman-1.26.1 which itself failed to build.
Ok, I think cardano-cli is built! but the build was still not complete:
Installing shelley-spec-ledger-test-0.1.0.0 (lib)
Completed shelley-spec-ledger-test-0.1.0.0 (lib)
cabal: Failed to build exe:scan-blocks from cardano-client-demo-0.1.0.0.
Failed to build exe:scan-blocks-pipelined from cardano-client-demo-0.1.0.0.
How do I get this tag - is it in the cabal.project file?
I basically have the cardano-node folder up to date. I dont know if this affects the installation, but I did build cardano-node with nix.
It is not in the cabal.project file. You need to know the basics of git.
The git branch command will tell you which branch you are on. You are probably on the master branch, but you should probably not be building master.
Instead, you want to build the latest tag. You can get a list of the git tags using the command git tag --list --sort=v:refname. Currently the latest tag is 1.26.1 which you can check out to a branch using git checkout 1.26.1 --branch tag-1.26.1 . You can then build that.
Sorry I will learn to be better with git. So I ran
git checkout 1.26.1 -b tag-1.26.1
cabal clean
cabal build all
unfortunately I still get the error:
cabal: Failed to build test:cardano-api-test from cardano-api-1.26.1.
Failed to build exe:scan-blocks from cardano-client-demo-0.1.0.0.
Failed to build exe:scan-blocks-pipelined from cardano-client-demo-0.1.0.0.