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

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

On Debian possible default full paths are:

/usr/bin/automoc4 - from package: automoc

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