rpmdev-sha512: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/rpmdev-sha512 - from package: rpmdevtools

You may install the required package with command yum install {package}
Error in other languages:
rpmdev-sha512: bevel nie gevind nie
rpmdev-sha512: comandă negăsită
rpmdev-sha512: comando não encontrado
rpmdev-sha512: commande introuvable
rpmdev-sha512: command not found
rpmdev-sha512: käsku ei ole
rpmdev-sha512: không tìm thấy lệnh
rpmdev-sha512: komanda nerasta
rpmdev-sha512: Kommando nicht gefunden.
rpmdev-sha512: kommandot finns inte
rpmdev-sha512: komut yok
rpmdev-sha512: nie znaleziono polecenia
rpmdev-sha512: níor aimsíodh an t-ordú
rpmdev-sha512: no se encontró la orden
rpmdev-sha512: no s'ha trobat l'ordre
rpmdev-sha512: opdracht niet gevonden
rpmdev-sha512: parancs nem található
rpmdev-sha512: perintah tidak ditemukan
rpmdev-sha512: príkaz nenájdený
rpmdev-sha512: příkaz nenalezen
rpmdev-sha512: команда не найдена
rpmdev-sha512: командата не е открита
rpmdev-sha512: 命令找不到
rpmdev-sha512: コマンドが見つかりません