Re: [R] Problem with Matrix package

From: Martin Maechler <maechler_at_stat.math.ethz.ch>
Date: Tue 04 Oct 2005 - 22:11:43 EST

>>>>> "Jari" == Jari Haukka <jari.haukka@geneos.fi>
>>>>> on Tue, 04 Oct 2005 12:56:58 +0300 writes:

    Jari> Hello All, While trying to install Matrix package     Jari> following error message came out:

    Jari> /usr/bin/ld: cannot find -lblas-3
    Jari> collect2: ld returned 1 exit status
    Jari> make: *** [Matrix.so] Error 1
    Jari> ERROR: compilation failed for package 'Matrix'
    Jari> ** Removing '/usr/lib/R/library/Matrix'
    Jari> ** Restoring previous '/usr/lib/R/library/Matrix'

Matrix has in src/Makefile

PKG_LIBS = ${LAPACK_LIBS} ${BLAS_LIBS} and quite a few other packages have the same or a very similar thing in their src/Makevars or src/Makefile.

Both these variables are defined by your R installation. And it seems are definitely defined wrongly for your environment.

Try (in a shell)

    grep LAPACK_LIBS `R RHOME`/etc/Makeconf     grep BLAS_LIBS `R RHOME`/etc/Makeconf to see their values
I'm sure the '-lblas-3' above is in one of them.

    Jari> It seems that someting is missing. Have anybody idea where we can find this     Jari> missing piece?

there are several debian packages for BLAS/LAPACK etc. I do wonder how you got to an R installation with LAPACK_LIBS or BLAS_LIBS that don't match the things available on your machine.

    Jari> We have Debian Linux.

Yes, and an installation of R (which one?) that's not "correct" in the above sense.

How was it installed?

Regards,
Martin Maechler, ETH Zurich



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Oct 04 22:17:03 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:17:32 EST