cxxtestgen.py: 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/cxxtestgen.py - from package: cxxtest

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