g++-4.9: 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/g++-4.9 - from package: g++-4.9
/usr/bin/g++-4.9 - from package: hardening-wrapper

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