Cabal Failed to build cardano-crypto-class-2.0.0 when building Cardano Node

Hi there,

I’m having the following error after executing the command cabal build all :

cabal: Failed to build cardano-crypto-class-2.0.0 (which is required by
cardano-ledger-shelley-ma-test-, test:cardano-api-test from
cardano-api-1.27.0 and others). The failure occurred during the configure

I’m following Cardano’s Stake Pool Course on setting up a Cardano Node.

I’m running on an AWS Instance, with Linux.

Best Regards.

José Araújo

Hello, so, you’ve already installed libsodium, and you are using tag 1.27.0 ? What happens when you run cabal configure --with-compiler=ghc-8.10.4 ?

Hi Raph.

thanks for reply.

on the first try I did everything ok but the console crashed before finishing the build.

In the second and third, I was too confident, I didn’t do the commands

export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"

And I ignored the error in the cabal configure --with-compiler=ghc-8.10.4

now it’s ok

many thanks

Best Regards

José Araújo

Ok then, glad you found the solution :+1: