CentOS7 compatibility

Has anyone had successful setup on CentOS7 ? I have been following the docs and struggle at nearly every step. I am now at the nix build and when I run
nix-build -A scripts.mainnet.node -o mainnet-node-local I get ‘command not found.’

nix-build -A scripts.mainnet.node -o mainnet-node-local

https://docs.cardano.org/projects/cardano-node/en/latest/getting-started/building-the-node-using-nix.html