Bug#610291: libgfortran: /usr/bin/ld: cannot find -lgfortran
Package: libgfortran3
Version: 4.4.5-10
Severity: normal
File: libgfortran
Thanks for maintaining libgfortran3.
I use it.
I happened to notice that building some R packages
from their source code elicited an error about
not being able to find gfortran's library.
Here's one way that I found tne bug.
$ R
> install.package("amap")
gfortran -fpic -O3 -pipe -g -c pop.f -o pop.o
g++ -shared -o amap.so acprob.o burt.o diss.o distance.o distance_T.o hclust.o hclust_T.o kmeans.o pop.o -lpthread -lgfortran -lm -L/usr/lib/R/lib -lR
/usr/bin/ld: cannot find -lgfortran
collect2: ld returned 1 exit status
make: *** [amap.so] Error 1
ERROR: compilation failed for package 'amap'
The other way was
> install.package("kernlab")
I fixed them by doing
$ ln -s /usr/lib/libgfortran.so.3.0.0 /usr/lib/libgfortran.so
If possible, maybe the libgfortran3 package should
create a similar symbolic link.
Thanks,
Kingsley
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages libgfortran3 depends on:
ii gcc-4.4-base 4.4.5-10 The GNU Compiler Collection (base
ii libc6 2.11.2-7 Embedded GNU C Library: Shared lib
libgfortran3 recommends no packages.
libgfortran3 suggests no packages.
-- no debconf information
Reply to: