pcretest: 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/bin/pcretest - from package: pcre

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