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

jsmith5889 at yahoo.com jsmith5889 at yahoo.com
Wed Nov 4 23:40:12 CET 2015


Thanks Dirk!

Could you please elaborate on what you mean by *building* against these
libraries?-- The compilation step went through without any problems;
only the linking step failed.

Also, it seems that I didn't need to add anything to my system that I
didn't already have---creating an un-versioned symbolic link to existing
files did the trick.

-Lutz

On 11/04/2015 11:27 PM, Dirk Eddelbuettel wrote:
> 
> 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
> 


More information about the Rcpp-devel mailing list