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

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

On Debian possible default full paths are:

/usr/bin/ejabberd2prosody - from package: prosody

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