texdepth: 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/texdepth - from package: piglit

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