[Rcpp-devel] Problem installing RcppEigen: cannot find -lgfortran -lquadmath

jsmith5889 at yahoo.com jsmith5889 at yahoo.com
Wed Nov 4 22:20:28 CET 2015


Hi all,

I hope that this mailing list is an appropriate outlet for my comment:

When I tried to install RcppEigen, I got the following error message
during the linking step:

g++ -shared -L/usr/lib64/R/lib -L/usr/local/lib64 -o RcppEigen.so
RcppEigen.o RcppExports.o fastLm.o -L/usr/lib64/R/lib -lRlapack
-L/usr/lib64/R/lib -lRblas -lgfortran -lm -lquadmath -L/usr/lib64/R/lib -lR
/usr/lib64/gcc/x86_64-suse-linux/5/../../../../x86_64-suse-linux/bin/ld:
cannot find -lgfortran
/usr/lib64/gcc/x86_64-suse-linux/5/../../../../x86_64-suse-linux/bin/ld:
cannot find -lquadmath

This problem appeared with R 3.2.2 on an openSuse tumbleweed machine
using g++ 5.2.1, and I verified that both libgfortran and libquadmath
were installed in /usr/lib64.

I noticed that my /usr/lib64 contained the files libgfortran.so.3 and
libquadmath.so.0, but not copies (or links) without a version number. I
could solve the installation problem by creating version-free links
libgfortran.so and libquadmath.so in /usr/lib64 that pointed to the
libgfortran.so.3 and libquadmath.so.0 files, respectively.

I would appreciate if anyone could check if they have the same problem,
and if this configuration is not exclusive to my computer.

Thanks,
Lutz


More information about the Rcpp-devel mailing list