gcc-4.6: 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/gcc-4.6 - from package: hardening-wrapper

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