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

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

On Debian possible default full paths are:

/usr/sbin/whereami - from package: whereami

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