Setting Up Cardano-Node Shelly on Centos 8

Hi Guys,
Haven’t found anywhere anybody with the error.
This is a fresh Centos8, im following https://cardano-foundation.gitbook.io/stake-pool-course/stake-pool-guide/getting-started/install-node

When I run cabal install cardano-node cardano-cli

Warning: Requested index-state2020-01-31T00:00:00Z is newer than
hackage.haskell.org’! Falling back to older state (2020-01-30T23:28:20Z).
Resolving dependencies…
Build profile: -w ghc-8.6.5 -O1
In order, the following will be built (use -v for more details):

  • cs-ledger-0.1.0.0 (lib) (requires build)
  • shelley-spec-ledger-0.1.0.0 (lib) (requires build)
  • ouroboros-consensus-shelley-0.1.0.0 (lib) (requires build)
  • ouroboros-consensus-cardano-0.1.0.0 (lib) (requires build)
  • cardano-config-0.1.0.0 (lib) (requires build)
  • cardano-node-1.9.3 (lib) (requires build)
  • cardano-node-1.9.3 (exe:chairman) (requires build)
  • cardano-node-1.9.3 (exe:cardano-cli) (requires build)
  • cardano-node-1.9.3 (exe:cardano-node) (requires build)
    Starting cs-ledger-0.1.0.0 (lib)
    Building cs-ledger-0.1.0.0 (lib)

Failed to build cs-ledger-0.1.0.0.
Build log (
/home/ipsonadmin/.cabal/logs/ghc-8.6.5/cs-ledger-0.1.0.0-b4687c7dd021a0a183d2aa308350820b5cd6cbc6f740fc2b65971d52f9879eec.log
):
Configuring library for cs-ledger-0.1.0.0…
/usr/local/lib/ghc-8.6.5/bin/ghc: /lib64/libtinfo.so.5: no version information available (required by /usr/local/lib/ghc-8.6.5/bin/…/haskeline-0.7.4.3/libHShaskeline-0.7.4.3-ghc8.6.5.so)
/usr/local/lib/ghc-8.6.5/bin/ghc: /lib64/libtinfo.so.5: no version information available (required by /usr/local/lib/ghc-8.6.5/bin/…/ghc-8.6.5/libHSghc-8.6.5-ghc8.6.5.so)
/usr/local/lib/ghc-8.6.5/bin/ghc: /lib64/libtinfo.so.5: no version information available (required by /usr/local/lib/ghc-8.6.5/bin/…/terminfo-0.4.1.2/libHSterminfo-0.4.1.2-ghc8.6.5.so)
/usr/local/lib/ghc-8.6.5/bin/ghc-pkg: /lib64/libtinfo.so.5: no version information available (required by /usr/local/lib/ghc-8.6.5/bin/ghc-pkg)
/usr/local/lib/ghc-8.6.5/bin/ghc-pkg: /lib64/libtinfo.so.5: no version information available (required by /usr/local/lib/ghc-8.6.5/bin/…/terminfo-0.4.1.2/libHSterminfo-0.4.1.2-ghc8.6.5.so)
Preprocessing library for cs-ledger-0.1.0.0…
Building library for cs-ledger-0.1.0.0…
/usr/local/lib/ghc-8.6.5/bin/ghc: /lib64/libtinfo.so.5: no version information available (required by /usr/local/lib/ghc-8.6.5/bin/…/haskeline-0.7.4.3/libHShaskeline-0.7.4.3-ghc8.6.5.so)
/usr/local/lib/ghc-8.6.5/bin/ghc: /lib64/libtinfo.so.5: no version information available (required by /usr/local/lib/ghc-8.6.5/bin/…/ghc-8.6.5/libHSghc-8.6.5-ghc8.6.5.so)
/usr/local/lib/ghc-8.6.5/bin/ghc: /lib64/libtinfo.so.5: no version information available (required by /usr/local/lib/ghc-8.6.5/bin/…/terminfo-0.4.1.2/libHSterminfo-0.4.1.2-ghc8.6.5.so)
[ 1 of 16] Compiling Hedgehog.Gen.Double ( src/Hedgehog/Gen/Double.hs, dist/build/Hedgehog/Gen/Double.o )
[ 2 of 16] Compiling Ledger.Core ( src/Ledger/Core.hs, dist/build/Ledger/Core.o )
[ 3 of 16] Compiling Ledger.Core.Omniscient ( src/Ledger/Core/Omniscient.hs, dist/build/Ledger/Core/Omniscient.o )
[ 4 of 16] Compiling Ledger.GlobalParams ( src/Ledger/GlobalParams.hs, dist/build/Ledger/GlobalParams.o )
[ 5 of 16] Compiling Ledger.Core.Generators ( src/Ledger/Core/Generators.hs, dist/build/Ledger/Core/Generators.o )
[ 6 of 16] Compiling Ledger.Util ( src/Ledger/Util.hs, dist/build/Ledger/Util.o )
[ 7 of 16] Compiling Ledger.Update ( src/Ledger/Update.hs, dist/build/Ledger/Update.o )

src/Ledger/Update.hs:1:1: error:
Exception when trying to run compile-time code:
/tmp/cabal-install.-191120/dist-newstyle/tmp/src-191120/cs-ledger-0.1.0.0/src/goblin_genomes/UPIREG_UPREGFailure_DoesNotVerify: openBinaryFile: does not exist (No such file or directory)
Code: mkGoblinGens
“UPIREG”
[“UPREGFailure_DoesNotVerify”, “UPREGFailure_NotGenesisDelegate”,
“UPREGFailure_UPVFailure_AVChangedInPVUpdate”,
“UPREGFailure_UPVFailure_PVChangedInSVUpdate”, …]
|
1 | {-# LANGUAGE DeriveAnyClass #-}
| ^
cabal: Failed to build cs-ledger-0.1.0.0 (which is required by exe:chairman
from cardano-node-1.9.3, exe:cardano-cli from cardano-node-1.9.3 and others).
See the build log above for details.

[cardano-node] ls -l /lib64/libtinfo.so.5: ls: cannot access '/lib64/libtinfo.so.5:': No such file or directory [cardano-node] ls -l /lib64/ | grep libtinfo
lrwxrwxrwx. 1 root root 15 May 11 2019 libtinfo.so.5 -> libtinfo.so.5.9
-rwxr-xr-x. 1 root root 200000 May 11 2019 libtinfo.so.5.9
lrwxrwxrwx. 1 root root 15 May 11 2019 libtinfo.so.6 -> libtinfo.so.6.1
-rwxr-xr-x. 1 root root 208616 May 11 2019 libtinfo.so.6.1

2 Likes

can you try again while running the following:

cabal clean
cabal update
cabal build all

then you will need to copy the executables files to the “.local/bin” directory. Replace the place holder with your targeted version:

cp -p dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-node-/x/cardano-node/build/cardano-node/cardano-node ~/.local/bin/

cp -p dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-cli-/x/cardano-cli/build/cardano-cli/cardano-cli ~/.local/bin/

1 Like

I am also trying to setup Cardano-Node on a free fresh AWS Instance running Redhat/Centos, but am running into an error with GHC 8.10.2

ghc: internal error: Unable to commit 1048576 bytes of memory

I’ve opened a ticket here

Wondering if anyone has seen this before and has any suggestions? I’ll try check and try increasing the allocated resources.

Thanks in advance!

It turns out my Free AWS server only had 1GB of RAM. So I setup a moderate (non-free) server with 8GB and solved the ghc: internal error.

@dfdumaresq Did you setup a completely new instance or did you upgrade the existing instance on which you built your node?

I setup a completely new AWS instance.

1 Like