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

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