[R] New Beginner: Problems w/loading Matrix package

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Wed Oct 17 18:09:33 CEST 2001

Leslie_Branch at hgsi.com writes:

> Hello all,
> I am 2 days old in compiling and installing R-1.3.1 and having all kinds of
> problems with one particular package named "Matrix_0.3-15.tar.gz"
> Where should I start?
> OK!
> I have successfully installed R version R-1.3.1 as well as a host of other
> packages (piece of cake).  When I tried to install the Matrix package, I
> got an error message stating that the "BLAS library could not be found"  I
> then downloaded a copy of the blas(blas.tgz) tar file from
> www.netlib.org/blas that contained nothing but function files.  I created
> the library using Fortran (g77) and "ar".  I called it "blas.a", moved it
> to the /usr/local/lib directory and made sure my path was set.  That still
> didn't work.  Next I was told that I probably need to recompile R so it can
> recognize the blas library.  I tried to do a "make distclean" to start over
> and I get another error message that says:
> make: Fatal error: Don't know how to make target `clean`
> Sorry to bore you with this R 101 basic stuff, but I have no clue as to
> what to do next.  Any assistance will be greatly appreciated.

You forgot to tell us what system you're on. There might be an easier
way to get the BLAS installed. Anyways: assuming you 

a) built R in its source directory
b) didn't do any important modifications to it

I'd suggest that you simply wipe the whole thing and unpack the R
sources again. Then make a BUILD dir, cd into it, and

../R-1.3.1/configure --with-blas

You may need to create a config.site file with


to get it to pick the blas from where you put it.

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list