[SciPy-User] NumPy error

nitin chandra nitinchandra1@gmail....
Tue Oct 6 00:43:02 CDT 2009


Hello

There is no 'libblas.a' in the source directory.

[root@mi newpy]# find /home/nitin/newpy/ -name "*blas.*"
/home/nitin/newpy/ATLAS-3.9.14/doc/cblas.pdf
/home/nitin/newpy/ATLAS-3.9.14/include/atlas_pkblas.h
/home/nitin/newpy/ATLAS-3.9.14/include/atlas_f77blas.h
/home/nitin/newpy/ATLAS-3.9.14/include/cblas.h
/home/nitin/newpy/xblas-1.0.248/libxblas.a
/home/nitin/newpy/xblas-1.0.248/m4/cblas.m4
/home/nitin/newpy/numpy-1.2.1/numpy/core/blasdot/_dotblas.c
/home/nitin/newpy/numpy-1.2.1/numpy/core/blasdot/cblas.h
/home/nitin/newpy/xblas.tar.gz
/home/nitin/newpy/numpy-1.3.0rc2/build/lib.linux-i686-2.6/numpy/core/_dotblas.so
/home/nitin/newpy/numpy-1.3.0rc2/build/temp.linux-i686-2.6/numpy/core/blasdot/_dotblas.o
/home/nitin/newpy/numpy-1.3.0rc2/numpy/core/blasdot/_dotblas.c
/home/nitin/newpy/numpy-1.3.0rc2/numpy/core/blasdot/cblas.h
/home/nitin/newpy/scipy-0.7.1/scipy/lib/blas/tests/test_blas.py
/home/nitin/newpy/scipy-0.7.1/scipy/lib/blas/tests/test_fblas.py
/home/nitin/newpy/scipy-0.7.1/scipy/lib/blas/fblas.pyf.src
/home/nitin/newpy/scipy-0.7.1/scipy/lib/blas/cblas.pyf.src
/home/nitin/newpy/scipy-0.7.1/scipy/linalg/tests/test_blas.py
/home/nitin/newpy/scipy-0.7.1/scipy/linalg/tests/test_fblas.py
/home/nitin/newpy/scipy-0.7.1/scipy/linalg/generic_cblas.pyf
/home/nitin/newpy/scipy-0.7.1/scipy/linalg/blas.py
/home/nitin/newpy/scipy-0.7.1/scipy/linalg/generic_fblas.pyf
/home/nitin/newpy/Linux_P4ESSE2/lib/libcblas.so
/home/nitin/newpy/Linux_P4ESSE2/lib/libf77refblas.a
/home/nitin/newpy/Linux_P4ESSE2/lib/libf77blas.so
/home/nitin/newpy/Linux_P4ESSE2/lib/libcblas.a
/home/nitin/newpy/Linux_P4ESSE2/lib/libf77blas.a

Or in the /opt directory tree ... where i am installing :-

[root@mi newpy]# find /opt/ -name "*blas.*"
/opt/python262/lib/python2.6/site-packages/numpy/core/_dotblas.so
/opt/atlas/lib/libcblas.so
/opt/atlas/lib/libf77blas.so
/opt/atlas/lib/libcblas.a
/opt/atlas/lib/libf77blas.a
/opt/atlas/include/cblas.h


In my previous mail i have attached a file documenting the steps taken
in installing various packages.


my site.cfg file is as follows


===================================================================

INSTALLING numpy

# tar zxvf numpy-1.2.1.tar.gz

# cd numpy-1.2.1

# cp site.cfg.example site.cfg

# joe site.cfg

[DEFAULT]
library_dirs = /usr/local/lib:/opt/atlas/lib:/opt/fftw332/lib:/opt/python262/lib
include_dirs = /usr/local/include:/opt/atlas/include:/opt/fftw332/include:/opt/python262/include

[blas_opt]
libraries = f77blas, cblas, atlas

[lapack_opt]
libraries = lapack, f77blas, cblas, atlas, g2c

[fftw]
libraries = fftw3, fftw3f

[fftw_opt]
libraries = fftw3_threads, fftw3f_threads

SAVE and EXIT


# /opt/python262/bin/python setup.py -v config_fc build_ext
--fcompiler=gnu95 build | tee build.log


# /opt/python262/bin/python setup.py install --prefix=/opt/python262
2>&1 | tee install.log


# source ~/.bashrc

TO UN-INSTALL numpy

Remove dir 'build'

Remove /opt/python262/lib/python2.6/site-packages/numpy-*.egg

and

Remove -rvf /opt/python262/lib/python2.6/site-packages/numpy/  ;;;
numpy/ direcotry


=====================================================================


>
> The error message was that it has a missing symbol, namely,
>
>       blas_zhemv2_x_
>
> I'm not real sure how to read this symbol  but try
>
>      nm libblas.a | grep  _zhemv2
>
> and see if the symbol is defined.
>
> Note, I don't have this symbol in my libraries but I'm using different
> versions of the libraries.
>
> Please post your site.cfg file found in <OS
> DIRECTORY>/python2.6/site-packages/numpy/distutils.
>
> Is it possible you didn't add the BLAS libraries to the site.cfg file?


More information about the SciPy-User mailing list