moc-qt4: 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/moc-qt4 - from package: qt-devel
/usr/lib64/qt4/bin/moc-qt4 - from package: qt-devel
/usr/lib/qt4/bin/moc-qt4 - from package: qt-devel

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

On Debian possible default full paths are:

/usr/bin/moc-qt4 - from package: libqt4-dev-bin

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