apreq2-config: 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/apreq2-config - from package: libapreq2-devel

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/apreq2-config - from package: libapreq2-dev

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