Stake pool on testnet. Error building Cardano node: "Failed to build HsOpenSSL-0.11.7.2. The failure occurred during the configure step."

Hi!

Following the stake pool course written instructions, using an AWS Linux server, when building the cardano node and cli, I receive the following error message:
“Failed to build HsOpenSSL-0.11.7.2. The failure occurred during the configure
step.”

Detail:
"

Starting MonadRandom-0.5.3 (lib)
Starting HsOpenSSL-0.11.7.2 (all, legacy fallback)
Building MonadRandom-0.5.3 (lib)
Starting QuickCheck-2.14.2 (lib)
Installing MonadRandom-0.5.3 (lib)
Building QuickCheck-2.14.2 (lib)
Completed MonadRandom-0.5.3 (lib)
Installing QuickCheck-2.14.2 (lib)
Completed QuickCheck-2.14.2 (lib)

Failed to build HsOpenSSL-0.11.7.2. The failure occurred during the configure
step.
Build log (
/home/ec2-user/.cabal/logs/ghc-8.10.7/HsOpenSSL-0.11.7.2-7440df4a687faaf09a9f33afa2ee178c78db20243d373c92c719b2ba30bf5741.log
):
[1 of 1] Compiling Main ( /home/ec2-user/cardano-src/cardano-node/dist-newstyle/tmp/src-20005/HsOpenSSL-0.11.7.2/dist/setup/setup.hs, /home/ec2-user/cardano-src/cardano-node/dist-newstyle/tmp/src-20005/HsOpenSSL-0.11.7.2/dist/setup/Main.o )
Linking /home/ec2-user/cardano-src/cardano-node/dist-newstyle/tmp/src-20005/HsOpenSSL-0.11.7.2/dist/setup/setup …
Configuring HsOpenSSL-0.11.7.2…
setup: Missing dependencies on foreign libraries:

  • Missing (or bad) header file: openssl/asn1.h
  • Missing (or bad) C libraries: ssl, crypto
    This problem can usually be solved by installing the system packages that
    provide these libraries (you may need the “-dev” versions). If the libraries
    are already installed but in a non-standard location then you can use the
    flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.If
    the library files do exist, it may contain errors that are caught by the C
    compiler at the preprocessing stage. In this case you can re-run configure
    with the verbosity flag -v3 to see the error messages.
    If the header file does exist, it may contain errors that are caught by the C
    compiler at the preprocessing stage. In this case you can re-run configure
    with the verbosity flag -v3 to see the error messages.

cabal: Failed to build HsOpenSSL-0.11.7.2 (which is required by
test:cardano-node-test from cardano-node-1.35.0, exe:cardano-node from
cardano-node-1.35.0 and others). See the build log above for details.
"

Any ideas?

KInd regards,
Pfannenstiel

4 Likes

did you figure this out?

I am facing the same problem.

Same problem as well

I am not sure if this is the problem, but just make sure that your haskell compiler is set to 8.10.7 and libraries are updated:

ghcup upgrade; \
ghcup install ghc '8.10.7'; \
ghcup set ghc '8.10.7'; \
cabal update;

Hello,
Thanks your you help, I have installed 8.10.7
I run the code another time to be sure, unfortunately still have the same issue,
I’m really stuck here, a bit frustrating, hopefully the solution will pop out :slight_smile:

Self resolved. I found it on the site below.

sudo yum install openssl-devel 
1 Like

Nope. But I successfully followed this guide: Setup a Stake Pool on Pre-Production or Preview testnets with CNTOOLS by @BlocksWell to set up, run and sync a node in the preview environment.

2 Likes

yep came across this too late, I tried to install various openssl libraries and appear to have created a mess of dependency or version issues. Because now no matter what I install I get the following error

Compiling Cardano.Node.Tracing.Tracers.ChainDB ( src/Cardano/Node/Tracing/Tracers/ChainDB.hs, /home/ec2-user/git/cardano-node-new/dist-newstyle/build/x86_64-linux/ghc-8.10.7/cardano-node-1.35.3/noopt/build/Cardano/Node/Tracing/Tracers/ChainDB.o, /home/ec2-user/git/cardano-node-new/dist-newstyle/build/x86_64-linux/ghc-8.10.7/cardano-node-1.35.3/noopt/build/Cardano/Node/Tracing/Tracers/ChainDB.dyn_o )
<command line>: /home/ec2-user/.cabal/store/ghc-8.10.7/HsOpenSSL-0.11.7.2-7440df4a687faaf09a9f33afa2ee178c78db20243d373c92c719b2ba30bf5741/lib/libHSHsOpenSSL-0.11.7.2-7440df4a687faaf09a9f33afa2ee178c78db20243d373c92c719b2ba30bf5741-ghc8.10.7.so: undefined symbol: EVP_MD_CTX_free
1 Like

I deleted everything and started from scratch and now is working, I guess I installed something wrong before, thanks everyone for your help.