Building a Cardano Node

Hi,

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

dist-newstyle/build/x86_64-linux/ghc-8.10.2/cardano-cli-1.34.1/x/cardano-cli/build/cardano-cli/cardano-cli

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

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

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:
0,
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:
0,
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-0.1.0.0 and others). See the build log above for details.

This

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:
https://hydra.iohk.io/build/13065941#tabs-constituents

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 .

2 Likes