[SciPy-user] BLAS, LAPACK, ATLAS libraries.

fie.pye@atl... fie.pye@atl...
Tue Jul 17 15:53:31 CDT 2007


Hi David, hi Vincent,

thank you for your response. 
On my computer I have three gcc compilers: gcc4.1, gcc4.2 and gcc3.4.6. Since you mentioned possible problem with gfortran I decided to compile BLAS, LAPACK, python2.5 and numpy again with gcc3.4.6 and f77. 
For numpy installation I used both
python2.5 setup.py build
python2.5 setup.py install
or
python2.5 setup.py build build_ext -libg2c install
but when importing numpy I got the same message

>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/python/python2.5.1/lib/python2.5/site-packages/numpy/__init__.py", line 43, in <module>
    import linalg
  File "/usr/local/python/python2.5.1/lib/python2.5/site-packages/numpy/linalg/__init__.py", line 4, in <module>
    from linalg import *
  File "/usr/local/python/python2.5.1/lib/python2.5/site-packages/numpy/linalg/linalg.py", line 25, in <module>
    from numpy.linalg import lapack_lite
ImportError: /usr/local/lib64/lapack/liblapack.so: undefined symbol: slamch_

I included all installation scripts and log files to enclosed file. 

I also began to install from source rpm but I am not familiar with that installation therefore I stopped after building. What does it mean refblas. 
http://software.opensuse.org/download/home:/ashigabou/Fedora_Extras_6/src/


Installation information
ldd /usr/local/python/python2.5.1/lib/python2.5/site-packages/numpy/linalg/lapack_lite.so
        liblapack.so => /usr/local/lib64/lapack/liblapack.so (0x00002aaaaacb4000)
        libblas.so => /usr/local/lib64/blas/libblas.so (0x00002aaaab636000)
        libg2c.so.0 => /usr/lib64/libg2c.so.0 (0x00002aaaab88a000)
        libm.so.6 => /lib64/libm.so.6 (0x00002aaaabada000)
        libgcc_s.so.1 => /usr/local/lib64/libgcc_s.so.1 (0x00002aaaabd5d000)
        libc.so.6 => /lib64/libc.so.6 (0x00002aaaabf6a000)
        /lib64/ld-linux-x86-64.so.2 (0x0000555555554000)

Best regards.
Fie Pye

PS: I always replay to e-mail. Why my respons does not append a tree and starts new contribution? 



>---------------------------------------------------------
>Od: David Cournapeau
>Přijato: 12.7.2007 6:12:47
>Předmět: Re: [SciPy-user] BLAS, LAPACK, ATLAS libraries.
>
>
>
>> Hi David.
>
>>
>
>> Thank you for your response. Based on your notes I recompiled BLAS and LAPACK libraries and build and installed python2.5.1 and numpy again. Unfortunately the error appears again
>
>>
>
>>>>> import numpy
>
>> Traceback (most recent call last):
>
>>   File "<stdin>", line 1, in <module>
>
>>   File "/usr/local/python/python2.5.1/lib/python2.5/site-packages/numpy/__init__.py", line 43, in <module>
>
>>     import linalg
>
>>   File "/usr/local/python/python2.5.1/lib/python2.5/site-packages/numpy/linalg/__init__.py", line 4, in <module>
>
>>     from linalg import *
>
>>   File "/usr/local/python/python2.5.1/lib/python2.5/site-packages/numpy/linalg/linalg.py", line 25, in <module>
>
>>     from numpy.linalg import lapack_lite
>
>> ImportError: /usr/local/python/python2.5.1/lib/python2.5/site-packages/numpy/linalg/lapack_lite.so: undefined symbol: _gfortran_concat_string
>
>>
>
>This is typically because you did not use the same fortran compiler 
>
>everywhere (g77 vs gfortran): the default fortran compiler on fedora 
>
>core (at least since 5) is gfortran, but this is not the default for 
>
>numpy or scipy. Again, this is exactly for this kind of things that I 
>
>packaged blas/lapack/atlas/numpy/scipy. Did you try building the source 
>
>rpms instead of building everything from sources ?
>
>
>
>cheers,
>
>
>
>David
>
>_______________________________________________
>
>SciPy-user mailing list
>
>SciPy-user@scipy.org
>
>http://projects.scipy.org/mailman/listinfo/scipy-user
>
>
>
>
>
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: numpy_install.tar.gz
Type: application/x-gzip
Size: 54364 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-user/attachments/20070717/f1dc31b5/attachment-0001.gz 


More information about the SciPy-user mailing list