midi2mg: 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 Debian possible default full paths are:

/usr/bin/midi2mg - from package: midge

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