Page 1 of 2

lapack-autoconf.tar.gz : build LAPACK 3.2.2 with autoconf

PostPosted: Wed Jul 07, 2010 12:38 pm
by cottrell
For those who like to build software with the GNU autoconf
procedure --

./configure <options> ; make ; make check; make install

There's a small package, lapack-autoconf.tar.gz, available at

http://www.wfu.edu/~cottrell/lapack/

(There's also a README there.) Unpack this package in the top-
level lapack source directory and you're in business. Builds
shared and/or static libraries, supports various precision options,
and so on.

Allin Cottrell
Wake Forest University

Re: lapack-autoconf.tar.gz : build LAPACK 3.2.2 with autoconf

PostPosted: Fri Jul 09, 2010 9:33 pm
by Left4DeadCheats
Thanks, I've been looking for this. What's the command line to unzip and extract?

Re: lapack-autoconf.tar.gz : build LAPACK 3.2.2 with autoconf

PostPosted: Mon Jul 12, 2010 10:58 pm
by cottrell
Oops, sorry, the README was not as informative as it might have been.
There's now a better version of
http://www.wfu.edu/~cottrell/lapack/README

But the procedure is just: tar xvfz lapack-autoconf.tar.gz in the top-level
directory of the current lapack source tree.

Allin Cottrell

Re: lapack-autoconf.tar.gz : build LAPACK 3.2.2 with autocon

PostPosted: Fri Sep 17, 2010 10:18 am
by mesothelioma
cottrell wrote:Oops, sorry, the README was not as informative as it might have been.
There's now a better version of
http://www.wfu.edu/~cottrell/lapack/README

But the procedure is just: tar xvfz lapack-autoconf.tar.gz in the top-level
directory of the current lapack source tree.

Allin Cottrell


Great. Thanks for the added info.

Re: lapack-autoconf.tar.gz : build LAPACK 3.2.2 with autocon

PostPosted: Sat Oct 02, 2010 7:24 pm
by Duncan
I'm having difficult running this command, I don't get why it won't work?
Code: Select all
--enable-single=no -enable-complex=no

Re: lapack-autoconf.tar.gz : build LAPACK 3.2.2 with autocon

PostPosted: Tue Oct 05, 2010 9:27 am
by cottrell
Duncan wrote:I'm having difficult running this command, I don't get why it won't work?
Code: Select all
--enable-single=no -enable-complex=no


These are options for the ./configure script. Also there's a dash missing
from the second option. The full invocation would be:

Code: Select all
./configure --enable-single=no --enable-complex=no

lapack-autoconf-0.2 for lapack 3.3.0

PostPosted: Mon Nov 22, 2010 5:59 pm
by cottrell
There is now an updated version of lapack-autoconf that works
with lapack 3.3.0. Please see http://www.wfu.edu/~cottrell/lapack

lapack-autoconf-0.3

PostPosted: Wed Dec 15, 2010 2:21 pm
by cottrell
There is now an updated version of lapack-autoconf available
at http://www.wfu.edu/~cottrell/lapack/lap ... 0.3.tar.gz .
This is for lapack 3.3.0. It addresses a problem noted by Erich Dolejsi,
namely a build error in the lapack test suite if you are using a
third-party BLAS.

Re: lapack-autoconf.tar.gz : build LAPACK 3.2.2 with autocon

PostPosted: Fri Jan 21, 2011 2:04 pm
by JoshDawson
Great, thanks for the upgrades. Is there another one coming already after 3.30? Also thanks for the correct command lines, I'm always terrible with these.

lapack-autoconf update

PostPosted: Sat Apr 23, 2011 2:18 pm
by cottrell
There's an update of my autoconf apparatus for lapack 3.3.1:
http://www.wfu.edu/~cottrell/lapack/lap ... onf.tar.gz

Re: lapack-autoconf.tar.gz : build LAPACK 3.2.2 with autocon

PostPosted: Sat Apr 23, 2011 4:42 pm
by velcro
great update thanks

Re: lapack-autoconf.tar.gz : build LAPACK 3.2.2 with autocon

PostPosted: Mon May 30, 2011 7:10 am
by shintanoid
Thanks!


I have a problem when using -llapack -lblas

I create a file named example.cpp
and with

g++ -c example.cpp
gfortran example.o -o example -llapack -lblas

till now it is ok, then ./example there is an error

the error is

./example: error while loading shared libraries: liblapack.so.3: cannot open shared object file: No such file or directory


I think there is no problem in my program(I have tested before), and there is no error when installing lapack

is it a bug?what should I do?

Re: lapack-autoconf.tar.gz : build LAPACK 3.2.2 with autocon

PostPosted: Tue May 31, 2011 2:22 am
by admin
Is your LD_LIBRARY_PATH set accordingly?

Re: lapack-autoconf.tar.gz : build LAPACK 3.2.2 with autocon

PostPosted: Wed Jun 01, 2011 6:18 am
by shintanoid
admin wrote:Is your LD_LIBRARY_PATH set accordingly?



I didn't set any PATH,maybe that is the problem

today I reinstalled ubuntu,and lapack with autoconf, this time nothing goes wrong......strange, anyway it's getting work, so I don't mind anymore

thanks!

Re: lapack-autoconf.tar.gz : build LAPACK 3.2.2 with autocon

PostPosted: Wed Mar 06, 2013 1:31 pm
by markuspiro
Hello,

I am using the lapack-3.4.0-autoconf to configure lapack and blas as shared libraries. I have followed the instructions from (viewtopic.php?f=2&t=1891#p5328):

tar -zxvf lapack-3.4.0.tgz
cd lapack-3.4.0
cp ~/Downloads/lapack-3.4.0-autoconf.tar.gz .
tar -zxvf lapack-3.4.0-autoconf.tar.gz
./configure
make
make check
make install

Everything is smooth until make install returning the following error:

/home/pirom/src/lapack-3.4.0/libtool: line 8183: mpif90: command not found
libtool: install: error: relink `../liblapack.la' with the above command before installing it
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/pirom/src/lapack-3.4.0/SRC'
make: *** [install_lapack] Error 2

Any ideas?

Alternatively, I understand that blas and lapack can be built as shared libraries with cmake. I have cmake installed...how exactly can I build lapack and blas as shared library in cmake?

Thanks!