Type in a terminal:
which gfortran
That should give you the path to your gfortran if not, it is not installed.
sudo apt-get install gfortran