mig: 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/mig - from package: tinyos-tools

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