Friday, October 1, 2010

/usr/bin/ld: cannot find -lgfortran

$ ld -lgfortran
ld: cannot find -lgfortran

$ sudo ln -s /usr/lib/libgfortran.so.3.0.0 /usr/lib/libgfortran.so

$ ld -lgfortran
ld: warning: cannot find entry symbol _start; not setting start address

2 comments:

lj said...

In some cases (e.g. debian squeeze) the lib is in a different location. In these cases, do:


ln -s /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0 /usr/lib/libgfortran.so

n0b3l1a said...

Cool. Thanks for sharing!