papi_error_codes: 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/papi_error_codes - from package: papi

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

On Debian possible default full paths are:

/usr/bin/papi_error_codes - from package: papi-tools

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