tpm_getpcrhash: 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/tpm_getpcrhash - from package: tpm-quote-tools

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