pq2: 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/pq2 - from package: root-proof-pq2

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