Natalia Morandeira
2015-May-08 02:10 UTC
[R-sig-Debian] Unable to install packages: "/usr/bin/ld: cannot find -lgfortran"
Dear all, I'm using R version 3.2.0 in Ubuntu 12.04 LTS. 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" I've been an R user for two years and this is the first time I get this error. I've uninstalled R and re-installed it but the problem was not solved. I'll be very grateful for any help or suggestions to solve the problem. Best regards, Natalia Morandeira [[alternative HTML version deleted]]
Dirk Eddelbuettel
2015-May-08 02:36 UTC
[R-sig-Debian] Unable to install packages: "/usr/bin/ld: cannot find -lgfortran"
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
Natalia Morandeira
2015-May-09 13:59 UTC
[R-sig-Debian] Unable to install packages: "/usr/bin/ld: cannot find -lgfortran"
Thanks, Dirk! That solved the problem Best, Natalia 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 -----Original Message----- From: "Natalia Morandeira" <nmorandeira at unsam.edu.ar> To: r-sig-debian at r-project.org Date: Thu, 07 May 2015 23:10:04 -0300 Subject: Unable to install packages: "/usr/bin/ld: cannot find -lgfortran" Dear all, I'm using R version 3.2.0 in Ubuntu 12.04 LTS. 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" I've been an R user for two years and this is the first time I get this error. I've uninstalled R and re-installed it but the problem was not solved. I'll be very grateful for any help or suggestions to solve the problem. Best regards, Natalia Morandeira [[alternative HTML version deleted]]