useprogram-refcount-1: 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/useprogram-refcount-1 - from package: piglit

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