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

Dirk Eddelbuettel edd at debian.org
Wed Nov 4 23:27:49 CET 2015


On 4 November 2015 at 22:20, jsmith5889 at yahoo.com wrote:
| 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.

You need the equivalent of libgfortran-dev to _build_ against Fortran and not
just _run_ against it.
 
| 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

The -dev versions give you that.

Dirk

| 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
| _______________________________________________
| Rcpp-devel mailing list
| Rcpp-devel at lists.r-forge.r-project.org
| https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

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


More information about the Rcpp-devel mailing list