rg-teximage-02: 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/rg-teximage-02 - from package: piglit

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