[Numpy-discussion] urgent problem
Hui Liu
hliu13 at uic.edu
Wed Nov 10 14:46:02 EST 2004
Hi everybody,
I am newbie for NumPY. I am frustrated by this problem deeply. Thanks for your help.
I installed ATLAS in solaris 8 sparc station with gcc and g77. I also install Numarray and NumPY23.6 on this workstation. When I run one program. I met the following problem:
" File "/usr/local/lib/python2.3/site-packages/Numeric/LinearAlgebra.py", line 8, in ?
import lapack_lite
ImportError: ld.so.1: /usr/local/bin/python: fatal: relocation error: file /usr/local/lib/python2.3/site-packages/Numeric/lapack_lite.so: symbol dgesdd_: referenced symbol not found".
My program begins with the following:
#!/usr/local/bin/python
from Numeric import reshape, transpose, exp
from LinearAlgebra import solve_linear_equations
My Numric-23.6's setup.py is as following:
undef_macros = []
# You might need to add a case here for your system
if sys.platform in ['win32']:
mathlibs = []
define_macros = []
undef_macros = ['HAVE_INVERSE_HYPERBOLIC']
elif sys.platform in ['mac', 'beos5']:
mathlibs = []
# delete all but the first one in this list if using your own LAPACK/BLAS
sourcelist = [os.path.join('Src', 'lapack_litemodule.c'),
# os.path.join('Src', 'blas_lite.c'),
# os.path.join('Src', 'f2c_lite.c'),
# os.path.join('Src', 'zlapack_lite.c'),
# os.path.join('Src', 'dlapack_lite.c')
]
# set these to use your own BLAS;
library_dirs_list = ['/export/home/hui/ATLAS/lib/SunOS_SunUSIII']
libraries_list = ['lapack', 'cblas', 'f77blas', 'atlas', 'g2c']
# if you also set `use_dotblas` (see below), you'll need:
# ['lapack', 'cblas', 'f77blas', 'atlas', 'g2c']
# set to true (1), if you also want BLAS optimized matrixmultiply/dot/innerproduct
use_dotblas = 1
include_dirs = ['/export/home/hui/ATLAS/include'] # You may need to set this to find cblas.h
# e.g. on UNIX using ATLAS this should be ['/usr/include/atlas']
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20041110/dd659b35/attachment.html>
More information about the NumPy-Discussion
mailing list