gfortran-4.8: 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/gfortran-4.8 - from package: gfortran-4.8

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