ProtocolParameters.dyn_o gcc error

Hello everyone, I am 100% new into cardano development and i was installing for the first time a cardano node on a virtual machine. When i run “cabal build all” i have an error from the gcc

“gcc: error: /home/giuseppetufano/cardano-src/cardano-node/dist-newstyle/build/x86_64-linux/ghc-8.10.4/cardano-api-1.30.1/build/Cardano/Api/ProtocolParameters.dyn_o: No such file or directory
gcc' failed in phase Linker’. (Exit code: 1)
cabal: Failed to build cardano-api-1.30.1 (which is required by
exe:tx-generator from tx-generator-1.29, exe:plutus-example from
plutus-example-1.29.0 and others).”

Can anyone help me please?

How much memory to you have. To compile cardano-node from source, you will need 8GB. To run it you will likely need slightly more.

I got same error, anyone have answer for this problem, I run on 4 cores, 16G Ram, 60GB disk

You may have the same error, but its not for the same reason.

I have two suggestions:

  • Make sure you a building the latest git tag (ie not master)
  • cabal clean && cabal build all

yeah, after rm cardano-node and rebuilt, I got the latest version, thank you