[Numpy-discussion] numpy build error on Solaris, No module named _md5
hi list, I tried to build numpy 1.2.1 on Solaris 9 with gcc 3.4.6 when I typed python setup.py build, I got error from hashlib.py File /home/sgong/dev181/dist/lib/python2.5/hashlib.py, line 133, in module md5 = __get_builtin_constructor('md5') File /home/sgong/dev181/dist/lib/python2.5/hashlib.py, line 60, in __get_builtin_constructor import _md5 ImportError: No module named _md5 I then tried python 2.6.1 instead of 2.5.2, but got the same error. I did not get the error while building on Linux. But I performed steps on Linux: 1) copy *.a Atlas libraries to my local_install/atlas/ 2) ranlib *.a 3) created a site.cfg Do I need to do the same on Solaris? Any help is appreciated. thanks, Shawn ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] numpy build error on Solaris, No module named _md5
hi Matthieu, import md5 doesn't work. I got: import md5 Traceback (most recent call last): File stdin, line 1, in module File /home/sgong/dev181/dist.org/lib/python2.5/md5.py, line 6, in module from hashlib import md5 File /home/sgong/dev181/dist.org/lib/python2.5/hashlib.py, line 133, in module md5 = __get_builtin_constructor('md5') File /home/sgong/dev181/dist.org/lib/python2.5/hashlib.py, line 60, in __get_builtin_constructor import _md5 ImportError: No module named _md5 But I followed the same steps to build python 2.5.2 as on Linux: config make clean make make -i install (because there is an older python 2.5.1 on my /usr/local/bin/) thanks, Shawn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthieu Brucher Sent: Tuesday, December 09, 2008 11:45 AM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] numpy build error on Solaris,No module named _md5 Hi, Does: import md5 work? If it doesn't, it's a packaging problem. md5 must be available. Matthieu 2008/12/9 Gong, Shawn (Contractor) [EMAIL PROTECTED]: hi list, I tried to build numpy 1.2.1 on Solaris 9 with gcc 3.4.6 when I typed python setup.py build, I got error from hashlib.py File /home/sgong/dev181/dist/lib/python2.5/hashlib.py, line 133, in module md5 = __get_builtin_constructor('md5') File /home/sgong/dev181/dist/lib/python2.5/hashlib.py, line 60, in __get_builtin_constructor import _md5 ImportError: No module named _md5 I then tried python 2.6.1 instead of 2.5.2, but got the same error. I did not get the error while building on Linux. But I performed steps on Linux: 1) copy *.a Atlas libraries to my local_install/atlas/ 2) ranlib *.a 3) created a site.cfg Do I need to do the same on Solaris? Any help is appreciated. thanks, Shawn ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion -- Information System Engineer, Ph.D. Website: http://matthieu-brucher.developpez.com/ Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92 LinkedIn: http://www.linkedin.com/in/matthieubrucher ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
[Numpy-discussion] non-linear array manipulation
hi list, The following array manipulation takes long time because I can't find ways to do in row/column, and have to do cell by cell. Would you check to see if there is a nicer/faster way for this non-linear operation? for i in range(rows): for j in range(columns): a[i][j] = math.sqrt( max(0.0, a[i][j]*a[i][j] - b[j]*c[j]) ) thanks, Shawn ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] non-linear array manipulation
thank you, Nadav Shawn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nadav Horesh Sent: Tuesday, August 12, 2008 11:58 AM To: Discussion of Numerical Python Subject: RE: [Numpy-discussion] non-linear array manipulation from numpy import * a = sqrt(maximum(0, a**2-repeat(b*c, columns).reshape(rows, columns))) Nadav -הודעה מקורית- מאת: [EMAIL PROTECTED] בשם Gong, Shawn (Contractor) נשלח: ג 12-אוגוסט-08 17:37 אל: Discussion of Numerical Python נושא: [Numpy-discussion] non-linear array manipulation hi list, The following array manipulation takes long time because I can't find ways to do in row/column, and have to do cell by cell. Would you check to see if there is a nicer/faster way for this non-linear operation? for i in range(rows): for j in range(columns): a[i][j] = math.sqrt( max(0.0, a[i][j]*a[i][j] - b[j]*c[j]) ) thanks, Shawn ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
[Numpy-discussion] cubic spline function in numarray or numpy
hi list, I am trying to find 1-D cubic spline function. Google search yields that there is a function called spline_filter1d in numarray. But I am not able to call it. Would someone point me to 1-D cubic spline function either in numarray or numpy? I can find source codes and enter in Python. But I prefer the built-in function. thanks, Shawn ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] cubic spline function in numarray or numpy
Thank you both, Nadav and Zach. Shawn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nadav Horesh Sent: Wednesday, August 06, 2008 12:16 PM To: Discussion of Numerical Python Subject: RE: [Numpy-discussion] cubic spline function in numarray or numpy You can access nd_image by: from numpy.numarray import nd_image but as Zach noted, scipy.interpolate is what you are looking for. Nadav. -הודעה מקורית- מאת: [EMAIL PROTECTED] בשם Zachary Pincus נשלח: ד 06-אוגוסט-08 19:09 אל: Discussion of Numerical Python נושא: Re: [Numpy-discussion] cubic spline function in numarray or numpy Hi Shawn, I am trying to find 1-D cubic spline function. But I am not able to call it. Error message can’t find “ndimage” Numpy provides tools for creating and dealing with multidimensional arrays and some basic FFT and linear algebra functions. You want to look at scipy, a set of packages built on numpy that provide more sophisticated domain-specific functionality. Specifically, ndimage is part of *scipy*, not numpy. Zach On Aug 6, 2008, at 11:46 AM, Gong, Shawn (Contractor) wrote: hi list, I am trying to find 1-D cubic spline function. But I am not able to call it. Error message can’t find “ndimage” Would someone point me to 1-D cubic spline functions either in numarray or numpy? and their help pages? I use python 2.3.5 and numpy 1.0.1. Are they too old to use cubic spline? thanks, Shawn ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
[Numpy-discussion] memory error caused by astype()
Hi list, When I do large array manipulations, I get out-of-memory errors. For instance if the array size is 5000 by 6000, the following codes use nearly 1G of RAM. Then my PC displays a Python error box. The try/except won't even catch it if the error happens in astype instead of array1* array2 try: if ( array1.typecode() in cplx_types ): array1 = abs(array1.astype(Numeric.Complex32)) else: array1 = array1.astype(Numeric.Float32) if ( array2.typecode() in cplx_types ): array2 = abs(array2.astype(Numeric.Complex32)) else: array2 = array2.astype(Numeric.Float32) array1 = Numeric.sqrt(array1) * Numeric.sqrt(array2) return array1 except: gvutils.error(Memory error occurred\nPlease select a smaller array) return None My questions are: 1) Is there a more memory efficient way instead of using astype? 2) If not, then how do I catch error during astype? 3) Is there a way in Python that detects the available RAM and limits the array size before he/she can go ahead with the array multiplications? i.e. detects the available RAM, say 1G Assume the worst case - Complex32 Figure out the array size limit and warn user Thanks, Shaw Gong ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
[Numpy-discussion] memory error caused by astype()
Hi list, When I do large array manipulations, I get out-of-memory errors. If the array size is 5000 by 6000, the following codes use nearly 1G. Then my PC displays a Python error box. The try/except won't catch it if the memory error happens in astype instead of array1* array2 try: if ( array1.typecode() in cplx_types ): array1 = abs(array1.astype(Numeric.Complex32)) else: array1 = array1.astype(Numeric.Float32) if ( array2.typecode() in cplx_types ): array2 = abs(array2.astype(Numeric.Complex32)) else: array2 = array2.astype(Numeric.Float32) array1 = Numeric.sqrt(array1) * Numeric.sqrt(array2) return array1 except: gvutils.error(Memory error occurred\nPlease select a smaller array) return None My questions are: 1) Is there a more memory efficient way of doing this? 2) How do I deal with exception if astype is the only way to go 3) Is there a way in Python that detects the available RAM and limits the array size before he/she can go ahead with the array multiplications? i.e. detects the available RAM, say 800K Assume worst case - Complex32 Figure out how many temp_arrays used by numpy Calculate array size limit = ?? 4) If there is no 3) Is there something in Python that monitors memory and warns the user. I have these astype at a number functions. Do I have to put try/except at each location? Thanks, Shaw Gong ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Linux numpy 1.0.1 install failed - undefined symbol: pthread_join
Hi Robert The override does the trick. It worked. Thanks and have a nice weekend. Shawn Okay, here is the full scoop: * The multi-threaded ATLAS is always tried first. This doesn't work for you since you compiled your Python without pthreads. * The standard library directories (/usr/lib, /usr/local/lib, etc.) are tried along with fairly standard ATLAS library directories, too (/usr/lib/atlas, /usr/local/lib/atlas). * Consequently, the multi-threaded libraries in /usr/local/lib/atlas are picked up before the version that you want. Here is how to override this (I think): Set the environment variable PTATLAS=None and then run the build. E.g. $ export PTATLAS=None $ python setup.py build -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
[Numpy-discussion] Linux numpy 1.0.1 install failed - undefined symbol: pthread_join
Hi Robert and list, My colleague said that it certainly looks like a missing thread library. It looks like the problem is that lapack_lite was compiled multi-threaded and can't find the thread library. Any solution to that? BTW, I tried 1.0.2 and got the same error. Thanks, Shawn -Original Message- From: Gong, Shawn (Contractor) Sent: Tuesday, May 22, 2007 1:28 PM To: 'Discussion of Numerical Python' Subject: RE: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed Thank you David M. Cooke and Robert. Now I changed directory and ran python, Got further and hit this error message: python Python 2.3.6 (#9, May 18 2007, 10:22:59) [GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-53)] on linux2 Type help, copyright, credits or license for more information. import numpy Traceback (most recent call last): File stdin, line 1, in ? File /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/__init__.py, line 40, in ? import linalg File /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/linalg/__init__. py, line 4, in ? from linalg import * File /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/linalg/linalg.py , line 25, in ? from numpy.linalg import lapack_lite ImportError: /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/linalg/lapack_lit e.so: undefined symbol: pthread_join ___ ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed
Hi Robert Running from numpy source directory message also appears when I installed numpy. I am running python 2.3.6, not 2.4 You said It is picking up the partial numpy package in the source. Do you mean it is picking up the partial numpy package from python 2.3.6 ? How do I change out of that directory and try again? Thanks, Shawn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Kern Sent: Tuesday, May 22, 2007 1:05 PM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed Gong, Shawn (Contractor) wrote: 2) Then in Python, when I type import numpy It says: Running from numpy source directory Then I type numpy.sqrt(5) AttributeError: 'module' object has no attribute 'sqrt' I assume that this means numpy was not installed successfully. No, it means that you are running from the numpy source directory. That means it is picking up the partial numpy package in the source that's used to bootstrap the installation. Change out of that directory and try again. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed
Thank you David M. Cooke and Robert. Now I changed directory and ran python, Got further and hit this error message: python Python 2.3.6 (#9, May 18 2007, 10:22:59) [GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-53)] on linux2 Type help, copyright, credits or license for more information. import numpy Traceback (most recent call last): File stdin, line 1, in ? File /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/__init__.py, line 40, in ? import linalg File /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/linalg/__init__. py, line 4, in ? from linalg import * File /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/linalg/linalg.py , line 25, in ? from numpy.linalg import lapack_lite ImportError: /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/linalg/lapack_lit e.so: undefined symbol: pthread_join ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed
Sorry forgot to mention that Python was installed with-thread=no as it is required for OpenEV application. I remember that when I installed numarray I had to set --unthreaded Maybe I need to do the same thing. Can someone tell me how to set this flag? Thanks, Shawn -Original Message- From: Gong, Shawn (Contractor) Sent: Tuesday, May 22, 2007 1:28 PM To: 'Discussion of Numerical Python' Subject: RE: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed Thank you David M. Cooke and Robert. Now I changed directory and ran python, Got further and hit this error message: python Python 2.3.6 (#9, May 18 2007, 10:22:59) [GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-53)] on linux2 Type help, copyright, credits or license for more information. import numpy Traceback (most recent call last): File stdin, line 1, in ? File /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/__init__.py, line 40, in ? import linalg File /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/linalg/__init__. py, line 4, in ? from linalg import * File /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/linalg/linalg.py , line 25, in ? from numpy.linalg import lapack_lite ImportError: /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/linalg/lapack_lit e.so: undefined symbol: pthread_join ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
[Numpy-discussion] Linux numpy 1.0.1 install failed
Hi List, I am trying to install numpy 1.0.1 on Linux. (Numeric and numarray have been fine) System info: Redhat Linux kernel 2.4 with gcc 3.2.3 but no separate FORTRAN compiler. It has a Fortran 77 compiler (the one which comes as part of gcc) My questions: 1) install can't find ATLAS (*.a) that I specify. Do they have to be *.so files? Do the *.a file sizes look right? Where can I get libblas.so liblapack.so files? 2) do I need a FORTRAN compiler? Will Fortran 77 compiler do? Thanks, Shawn Followings are error messages: - When I type python setup.py install numpy.out, I get: Screen display as follows: - Running from numpy source directory. /home/sgong/dev/numpy-1.0.1/numpy/distutils/system_info.py:934: UserWarning: * Lapack library (from ATLAS) is probably incomplete: size of /usr/lib/liblapack.so is 3676k (expected 4000k) Follow the instructions in the KNOWN PROBLEMS section of the file numpy/INSTALL.txt. * I then asked system admin people to install a complete ATLAS onto /usr/local/lib/atlas -rw-r--r--1 root root 8049172 May 15 08:49 libatlas.a -rw-r--r--1 root root 279016 May 15 08:49 libcblas.a -rw-r--r--1 root root 342062 May 15 08:49 libf77blas.a -rw-r--r--1 root root 5314268 May 15 08:49 liblapack.a -rw-r--r--1 root root 279590 May 15 08:49 libptcblas.a -rw-r--r--1 root root 342430 May 15 08:49 libptf77blas.a -rw-r--r--1 root root 320316 May 15 08:49 libtstatlas.a System admin people said that he doesn't know how to get/install *.so. He can only get *.a library. I also changed site.cfg to enter library_dirs = /usr/local/lib/atlas/ Please find the numpy.out.txt file. Some of the lines are: F2PY Version 2_3473 blas_opt_info: blas_mkl_info: libraries mkl,vml,guide not found in /home/sgong/dev/dist/lib libraries mkl,vml,guide not found in /usr/local/lib libraries mkl,vml,guide not found in /usr/lib NOT AVAILABLE atlas_blas_threads_info: Setting PTATLAS=ATLAS libraries lapack,blas not found in /usr/local/lib/atlas libraries lapack,blas not found in /usr/local/lib/atlas/ libraries lapack,blas not found in /home/sgong/dev/dist/lib libraries lapack,blas not found in /usr/local/lib/atlas libraries lapack,blas not found in /usr/local/lib Setting PTATLAS=ATLAS Setting PTATLAS=ATLAS FOUND: libraries = ['lapack', 'blas'] library_dirs = ['/usr/lib'] language = c Could not locate executable gfortran Could not locate executable f95 customize GnuFCompiler customize GnuFCompiler customize GnuFCompiler using config compiling '_configtest.c': /* This file is generated from numpy_distutils/system_info.py */ void ATL_buildinfo(void); int main(void) { ATL_buildinfo(); return 0; } C compiler: gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC compile options: '-c' gcc: _configtest.c gcc _configtest.o -L/usr/lib -llapack -lblas -o _configtest _configtest.o(.text+0x15): In function `main': /home/sgong/dev/numpy-1.0.1/_configtest.c:5: undefined reference to `ATL_buildinfo' /usr/lib/liblapack.so: undefined reference to `e_wsfe' /usr/lib/liblapack.so: undefined reference to `z_abs' /usr/lib/liblapack.so: undefined reference to `c_sqrt' /usr/lib/liblapack.so: undefined reference to `s_cmp' /usr/lib/liblapack.so: undefined reference to `z_exp' /usr/lib/liblapack.so: undefined reference to `c_exp' /usr/lib/liblapack.so: undefined reference to `etime_' /usr/lib/liblapack.so: undefined reference to `do_fio' /usr/lib/liblapack.so: undefined reference to `z_sqrt' /usr/lib/liblapack.so: undefined reference to `s_cat' /usr/lib/liblapack.so: undefined reference to `s_stop' /usr/lib/liblapack.so: undefined reference to `c_abs' /usr/lib/liblapack.so: undefined reference to `s_wsfe' /usr/lib/liblapack.so: undefined reference to `s_copy' collect2: ld returned 1 exit status _configtest.o(.text+0x15): In function `main': /home/sgong/dev/numpy-1.0.1/_configtest.c:5: undefined reference to `ATL_buildinfo' F2PY Version 2_3473 blas_opt_info: blas_mkl_info: libraries mkl,vml,guide not found in /home/sgong/dev/dist/lib libraries mkl,vml,guide not found in /usr/local/lib libraries mkl,vml,guide not found in /usr/lib NOT AVAILABLE atlas_blas_threads_info: Setting PTATLAS=ATLAS libraries lapack,blas not found in /usr/local/lib/atlas libraries lapack,blas not found in /usr/local/lib/atlas/ libraries lapack,blas not found in /home/sgong/dev/dist/lib libraries lapack,blas not found in /usr/local/lib/atlas libraries lapack,blas not found in /usr/local/lib Setting PTATLAS=ATLAS Setting PTATLAS=ATLAS FOUND: libraries = ['lapack', 'blas'] library_dirs = ['/usr/lib'] language = c Could not locate
[Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed
Sorry Robert, My email sent to mail-list bounced back 5 times. Shawn _ From: Gong, Shawn (Contractor) Sent: Friday, May 18, 2007 5:05 PM To: '[EMAIL PROTECTED]' Subject: RE: [Numpy-discussion] Linux numpy 1.0.1 install failed Hi Robert, I added ref to site.cfg, but still getting the same error message: see out.txt file. It seems that install can't find the libraries in /usr/local/lib/atlas/ (see the out.txt file Line 14: libraries lapack,blas not found in /usr/local/lib/atlas) Shawn out.txt site.cfg F2PY Version 2_3473 blas_opt_info: blas_mkl_info: libraries mkl,vml,guide not found in /home/sgong/dev/dist/lib libraries mkl,vml,guide not found in /usr/local/lib libraries mkl,vml,guide not found in /usr/lib NOT AVAILABLE atlas_blas_threads_info: Setting PTATLAS=ATLAS libraries lapack,blas not found in /usr/local/lib/atlas libraries lapack,blas not found in /usr/local/lib/atlas/ libraries lapack,blas not found in /home/sgong/dev/dist/lib libraries lapack,blas not found in /usr/local/lib/atlas libraries lapack,blas not found in /usr/local/lib Setting PTATLAS=ATLAS Setting PTATLAS=ATLAS FOUND: libraries = ['lapack', 'blas'] library_dirs = ['/usr/lib'] language = c Could not locate executable gfortran Could not locate executable f95 customize GnuFCompiler customize GnuFCompiler customize GnuFCompiler using config compiling '_configtest.c': /* This file is generated from numpy_distutils/system_info.py */ void ATL_buildinfo(void); int main(void) { ATL_buildinfo(); return 0; } C compiler: gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC compile options: '-c' gcc: _configtest.c gcc _configtest.o -L/usr/lib -llapack -lblas -o _configtest _configtest.o(.text+0x15): In function `main': /home/sgong/dev/numpy-1.0.1/_configtest.c:5: undefined reference to `ATL_buildinfo' /usr/lib/liblapack.so: undefined reference to `e_wsfe' /usr/lib/liblapack.so: undefined reference to `z_abs' /usr/lib/liblapack.so: undefined reference to `c_sqrt' /usr/lib/liblapack.so: undefined reference to `s_cmp' /usr/lib/liblapack.so: undefined reference to `z_exp' /usr/lib/liblapack.so: undefined reference to `c_exp' /usr/lib/liblapack.so: undefined reference to `etime_' /usr/lib/liblapack.so: undefined reference to `do_fio' /usr/lib/liblapack.so: undefined reference to `z_sqrt' /usr/lib/liblapack.so: undefined reference to `s_cat' /usr/lib/liblapack.so: undefined reference to `s_stop' /usr/lib/liblapack.so: undefined reference to `c_abs' /usr/lib/liblapack.so: undefined reference to `s_wsfe' /usr/lib/liblapack.so: undefined reference to `s_copy' collect2: ld returned 1 exit status _configtest.o(.text+0x15): In function `main': /home/sgong/dev/numpy-1.0.1/_configtest.c:5: undefined reference to `ATL_buildinfo' /usr/lib/liblapack.so: undefined reference to `e_wsfe' /usr/lib/liblapack.so: undefined reference to `z_abs' /usr/lib/liblapack.so: undefined reference to `c_sqrt' /usr/lib/liblapack.so: undefined reference to `s_cmp' /usr/lib/liblapack.so: undefined reference to `z_exp' /usr/lib/liblapack.so: undefined reference to `c_exp' /usr/lib/liblapack.so: undefined reference to `etime_' /usr/lib/liblapack.so: undefined reference to `do_fio' /usr/lib/liblapack.so: undefined reference to `z_sqrt' /usr/lib/liblapack.so: undefined reference to `s_cat' /usr/lib/liblapack.so: undefined reference to `s_stop' /usr/lib/liblapack.so: undefined reference to `c_abs' /usr/lib/liblapack.so: undefined reference to `s_wsfe' /usr/lib/liblapack.so: undefined reference to `s_copy' collect2: ld returned 1 exit status failure. removing: _configtest.c _configtest.o Status: 255 Output: FOUND: libraries = ['lapack', 'blas'] library_dirs = ['/usr/lib'] language = c define_macros = [('NO_ATLAS_INFO', 2)] lapack_opt_info: lapack_mkl_info: mkl_info: libraries mkl,vml,guide not found in /home/sgong/dev/dist/lib libraries mkl,vml,guide not found in /usr/local/lib libraries mkl,vml,guide not found in /usr/lib NOT AVAILABLE NOT AVAILABLE atlas_threads_info: Setting PTATLAS=ATLAS libraries lapack,blas not found in /usr/local/lib/atlas libraries lapack_atlas not found in /usr/local/lib/atlas libraries lapack,blas not found in /usr/local/lib/atlas/ libraries lapack_atlas not found in /usr/local/lib/atlas/ libraries lapack,blas not found in /home/sgong/dev/dist/lib libraries lapack_atlas not found in /home/sgong/dev/dist/lib libraries lapack,blas not found in /usr/local/lib/atlas libraries lapack_atlas not found in /usr/local/lib/atlas libraries lapack,blas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/lib numpy.distutils.system_info.atlas_threads_info Setting PTATLAS=ATLAS Setting PTATLAS=ATLAS FOUND: libraries = ['lapack', 'lapack', 'blas'] library_dirs = ['/usr/lib'] language = c customize GnuFCompiler customize