Page 1 of 1

how to install lapack under windows cygwin!

PostPosted: Thu Mar 23, 2006 4:08 am
by dp
hi:
i have download the lapack 3.0 , and i wnat to intstall it under windows system, and i use the cygwin.
i first untar the tar file,then
i enter the make command, but it can not work .
it gives me many rows of error: such as
f77 language arch=v8plusa not recognized
f77: stgsna.f: linker input file unused because linking not done

then what should i compile it correctly!

regards

PostPosted: Thu Mar 23, 2006 4:50 am
by sven
You can get LAPACK as part of cygwin, run the cygwin setup and select lapack from the Maths category. I believe that also installs the BLAS. the lapack and blas libraries will be in /lib.

I have not used the cygwin versions myself, so I don't know how efficient they are, but at least it should be an easy way to get started.

Best wishes,

Sven Hammarling.

PostPosted: Thu Mar 23, 2006 5:39 pm
by Julien Langou
yep, or if you want to compile it your LAPACK yourself you can do:

mv INSTALL/make.inc.LINUX make.inc
make blaslib lib testing

(you were using the default make.inc, you have to change it for Linux machine - or cygwin)

but Sven is right, you'd be as better to go with the lapack version distributed by cygwin.

Julien

PostPosted: Thu Mar 23, 2006 9:28 pm
by dp
hI:
IT WORKS , BUT I ONLY FIND THE LIBLAPACK.A IN THE /LIB DIRECTORY, DOES LAPACK INCLUDE THE BLAS .

REGARDS

PostPosted: Fri Mar 24, 2006 11:25 am
by Julien Langou
DOES LAPACK INCLUDE THE BLAS .


On Cygwin, yes and no.

If you want the short answer: yes.
A line like:
g77 myprogram.f -llapack
will work.
So on some sense you have BLAS and LAPACK at once.

But hopefully no... The two libraries are still distinct. The idea is that you want to plug any BLAS behind LAPACK. So a LAPACK library should not include a BLAS library inside it. I do not know all the details on how the cygwin guys have done it but I think this is ok.