[R-sig-Debian] Unable to install packages: "/usr/bin/ld: cannot find -lgfortran"

Dirk Eddelbuettel edd at debian.org
Fri May 8 04:36:31 CEST 2015


On 7 May 2015 at 23:10, Natalia Morandeira wrote:
|  While trying to install any package I get the error: "/usr/bin/ld: cannot 
| find -lgfortran"
| 
| If I open a Terminal and run "ldconfig -p | grep libgfortran"​, I get:​
| "libgfortran.so.3 (libc6,x86-64) => 
| /usr/lib/x86_64-linux-gnu/libgfortran.so.3"

You have the _run-time_ package for Fortran, you also need the dev package: 

edd at max:~$ COLUMNS=125 dpkg -l | grep libgfortran- | cut -c-75
ii  libgfortran-4.7-dev:amd64 4.7.4-2ubuntu1    amd64             Runtime l
ii  libgfortran-4.8-dev:amd64 4.8.3-12ubuntu3   amd64             Runtime l
ii  libgfortran-4.9-dev:amd64 4.9.1-16ubuntu6   amd64             Runtime l

That's on my 14.10 box.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org



More information about the R-SIG-Debian mailing list