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

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