gpg-error-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/gpg-error-config - from package: libgpg-error-devel

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

On Debian possible default full paths are:

/usr/bin/gpg-error-config - from package: libgpg-error-dev

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