gcc-4.7: 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.7 - from package: hardening-wrapper

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