gfortran not found when installing r-packages
<p>I am repeatedly encountering the following error</p>

<pre><code>/usr/bin/ld: cannot find -lgfortran
</code></pre>

<p>when trying to install a lot of r-packages (e.g. igraph, ergm, blockmodels, and I guess every package that requires gcc and fortran in some way or another)</p>

<p>I run R on Ubuntu Trusty, and I have recently upgraded R from 3.1.0 to 3.3.1.
When on 3.1.0, I had been able to install igraph and ergm (and others) without any problem, but not blockmodels.</p>

<p>I have checked for the presence of libgfortran on my system: it is there. Actually there is more than one version of it (3, 4.7, 4.8) and also libgfortran-dev is installed (multiple versions as well)</p>

<p>Any idea of what is going on?
Thank you for any advice.</p>