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

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