gen_cpp.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/gen_cpp.py - from package: python-gencpp

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