[SciPy-user] Latest CVS - import scipy fails --> ATLAS

Nils Wagner nwagner at mecha.uni-stuttgart.de
Wed Feb 27 05:40:17 EST 2002


Pearu Peterson schrieb:
> 
> On Tue, 26 Feb 2002, Nils Wagner wrote:
> 
> > Hi,
> >
> > Finally I've installed the latest scipy version via cvs.
> > But import scipy fails
> >
> > Python 2.1.2 (#1, Feb 25 2002, 18:04:21)
> > [GCC 2.95.3 20010315 (SuSE)] on linux2
> > Type "copyright", "credits" or "license" for more information.
> > >>> import scipy
> > /usr/local/lib/python2.1/site-packages/scipy/linalg/clapack.so:
> > undefined symbol: clapack_sgetrf
> 
> Could you check your atlas installation? Try to follow the instructions in
> 
> http://www.scipy.org/Members/fperez/PerezCVSBuild.htm
> 
> as closely as possible.
> 
> Pearu
> 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user

Hi Pearu,

I have already built ATLAS.

~/mysoftware/ATLAS/lib/Linux_ATHLON> ls -l
insgesamt 5976
-rw-r--r--    1 root     root      5027632 Feb 27 11:05 libatlas.a
-rw-r--r--    1 root     root       272104 Feb 27 11:01 libcblas.a
-rw-r--r--    1 root     root       344582 Feb 27 11:05 libf77blas.a
-rw-r--r--    1 root     root       157744 Feb 27 11:05 liblapack.a
-rw-r--r--    1 root     root       300060 Feb 27 10:09 libtstatlas.a
drwxr-xr-x    2 wagner   users        3411 Feb 27 11:16 tmp
~/mysoftware/ATLAS/lib/Linux_ATHLON>

Now I would like to build 
one monolithic LAPACK library. For this purpose 
I followed the first three steps of ../ATLAS/doc/LAPACK.txt.
that is in ATLAS/lib/Linux_ATHLON>

mkdir tmp
cd tmp
ar x ../liblapack.a

Step 4:

mv <your LAPACK lib & path> ../liblapack.a

My old LAPACK lib and the old liblapack_atlas.a is located in /usr/lib/

-rw-r--r--    1 root     root      5763150 Sep 24 01:00 liblapack.a
lrwxrwxrwx    1 root     root           14 Okt 22 19:27 liblapack.so ->
liblapack.so.3
lrwxrwxrwx    1 root     root           18 Okt 22 19:27 liblapack.so.3
-> liblapack.so.3.0.0
-rwxr-xr-x    1 root     root      4826626 Sep 24 01:01
liblapack.so.3.0.0
-rw-r--r--    1 root     root       157712 Sep 24 02:51
liblapack_atlas.a

What shall I use for <your LAPACK lib & path> ?

What follows is

ar r ../liblapack.a *.o
cd ..
rm -rf tmp


Finally the libraries this process created should be copied to /usr/lib.
Is that o.k. ?

Shall I move the original liblapack.a in /usr/lib to something like
liblapack.ori 


Nils



More information about the SciPy-User mailing list