gen-compressed-teximage: 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/lib64/piglit/bin/gen-compressed-teximage - from package: piglit

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