Building a Cardano Node


I’m hoping for some help with deploying a Cardano node.

I’m following this article

and get as far running the following commands

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

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

I am building the node on Centos 7.

Problem is there is no directory structure


[XXXXX@localhost cardano-node]$ ls dist-newstyle/build/x86_64-linux/ghc-8.10.2/

base-deriving-via- contra-tracer- monoidal-synchronisation- optparse-applicative-fork- prettyprinter-configurable- Win32-network-
cardano-submit-api-3.1.2 measures- non-integral- plutus-ghc-stub-8.6.5 tracer-transformers-

I’m clearly missing something but cant figure out what it is, any pointers would be appreciated.

Thank you.

I’ve re-run ‘cabel build all’ and get the errored output as below.

In file included from cbits/aes/x86ni.h:38:0: error:
from cbits/aes/gf.c:35:

/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/wmmintrin.h:34:3: error:
error: #error “AES/PCLMUL instructions not enabled”
# error “AES/PCLMUL instructions not enabled”
34 | # error “AES/PCLMUL instructions not enabled”
| ^

In file included from cbits/aes/x86ni.h:39:0: error:
from cbits/aes/gf.c:35:

/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/tmmintrin.h:31:3: error:
error: #error “SSSE3 instruction set not enabled”
# error “SSSE3 instruction set not enabled”
31 | # error “SSSE3 instruction set not enabled”
| ^
gcc' failed in phase C Compiler’. (Exit code: 1)
cabal: Failed to build cryptonite-0.27 (which is required by
test:cardano-testnet-tests from cardano-testnet-1.34.1,
plutus-tx-plugin- and others). See the build log above for details.


and this

(even mentioning CentOS 7 specifically) looks like you might need a newer gcc.

Thanks for the pointer - Also found this…

Just download the provided binaries and skip building from sources.

Thanks for the info - I’m learning lots doing this.

Where would I get the binaries from?

These should be the latest ones:

I highly recommend avoid using binaries compiled from the master branch (they compile but have not undergone any QA).

Instead, only use binaries compiled from the latest git tag which can be found at Releases · input-output-hk/cardano-node · GitHub .