Hello All, While trying to install Matrix package following error message came out: /usr/bin/ld: cannot find -lblas-3 collect2: ld returned 1 exit status make: *** [Matrix.so] Error 1 ERROR: compilation failed for package 'Matrix' ** Removing '/usr/lib/R/library/Matrix' ** Restoring previous '/usr/lib/R/library/Matrix' It seems that someting is missing. Have anybody idea where we can find this missing piece? We have Debian Linux. Jari Haukka
>>>>> "Jari" == Jari Haukka <jari.haukka at 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
Hi, if it is not essential to build the package by yourselves, why not use the Debian package r-cran-matrix instead. HTH, Johan Sandblom 2005/10/4, Jari Haukka <jari.haukka at geneos.fi>:> Hello All, > > While trying to install Matrix package following error message came out: > > > /usr/bin/ld: cannot find -lblas-3 > collect2: ld returned 1 exit status > make: *** [Matrix.so] Error 1 > ERROR: compilation failed for package 'Matrix' > ** Removing '/usr/lib/R/library/Matrix' > ** Restoring previous '/usr/lib/R/library/Matrix' > > > It seems that someting is missing. Have anybody idea where we can find this > missing piece? > We have Debian Linux. > > > Jari Haukka > > ______________________________________________ > R-help at 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 >-- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell
Apparently Analagous Threads
- Question about building library and BLAS
- Any R function for self-controlled case series method /effect absorption?
- How to change Rlapack by lapack (for rpy2 installation)?
- Makefile to compile .so in src (was: Re: automated libR location)
- Compiling R-2.11.0 with ATLAS-tuned BLAS and LAPACK