I’m having the following problem after executing the command cabal build all:
cabal: Failed to build aeson-1.5.2.0 (which is required by test:cardano-node-test from cardano-node-1.19.0, exe:cardano-node from cardano-node-1.19.0 and others). The build process terminated with exit code -6
I’m following Cardano’s Stake Pool Course on setting up a Cardano Node.
I have followed exactly Cardano’s Stake Pool Guide. That means I’ve already run cabal update and after that cabal --version. Anyway, I have run them again. This is what I get:
[ec2-user@ip-172-31-37-144 ~]$ cabal update Downloading the latest package list from hackage.haskell.org To revert to previous state run: cabal v2-update 'hackage.haskell.org,2020-09-21T21:43:55Z' [ec2-user@ip-172-31-37-144 ~]$ cabal --version cabal-install version 3.2.0.0 compiled using version 3.2.0.0 of the Cabal library
And after that I’ve done cabal clean and cabal build all as you guys suggested. Now this is what I’m getting:
Cloning into '/home/ec2-user/cardano-node/dist-newstyle/src/ouroboros_-e7dffa0d85e2839'... remote: Enumerating objects: 1249, done. remote: Counting objects: 100% (1249/1249), done. remote: Compressing objects: 100% (749/749), done. remote: Total 104885 (delta 914), reused 613 (delta 422), pack-reused 103636 Receiving objects: 100% (104885/104885), 110.35 MiB | 14.03 MiB/s, done. Resolving deltas: 100% (73114/73114), done. HEAD is now at f0eb6e439 Merge #2546 Warning: Requested index-state2020-07-15T00:00:00Z is newer than 'hackage.haskell.org'! Falling back to older state (2020-07-14T22:50: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
Sorry guys but I’m getting the same. I don’t know what I’m doing wrong, but I’m back at the beginning. I also have both GHC and Libsodium correctly installed.
cabal: Failed to build aeson-1.5.2.0 (which is required by test:cardano-node-test from cardano-node-1.19.0, exe:cardano-node from cardano-node-1.19.0 and others). The build process terminated with exit code -6
I have tried all the commands you told me and set the environment variables you mentioned.
I tried everything again and now I’m getting this error on a previous step, which was working before (installation of GHC). It’s after I run sudo make install:
/usr/local/lib/ghc-8.6.5/bin/ghc-pkg: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory make[1]: *** [install_packages] Error 127 make: *** [install] Error 2
Maybe you can check your LD_LIBRARY_PATH and PATH if anything was overwritten? Usually the libraries and binaries are referenced relative to these path’s.
Also I have better experience defining export NCPUS=1 before “cabal build all” as ghc might throw errors else.
But the problem you are describing is definetly linked to the libraries, so check your paths. Also try a
locate libtinfo.so.5
and see if the library can be found.
If locate doesnt work try:
find /lib/ -name libtinfo.so.5
Yes, I’m running as “ec2” user in AWS. Thanks for the guide, I’m gonna try that one today. Is it really necessary to create a new user for the node? If yes, do you know how to do it in the AWS console? Because these commands are not working as expected in the guide:
sudo adduser cardano (this one doesn’t provide the ability to set a password for the account"
sudo usermod -aG sudo cardano (this one directly doesn’t work)