From: James K. G. <jk...@sa...> - 2006-10-19 19:15:18
|
I'm using Fedora core 5, that insect-laden wonder, which includes python=20 2.4.3. I'm trying to install numpy (scipy-core) and scipy (the rest). I= =20 can't seem to get around package conflicts. I've tried two methods, one in= =20 which numpy fails and one in which scipy fails. =20 METHOD 1 (numpy fails) Download numpy (numpy-1.0r3); untarball and install. Test by running python and importing numpy. Looks OK, but notes "running f= rom=20 numpy source directory". So, test by running python from a different=20 directory and importing numpy. Get the following error: >>> import numpy Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.4/site-packages/numpy/__init__.py", line 40, in ? import linalg File "/usr/lib/python2.4/site-packages/numpy/linalg/__init__.py", line 4,= =20 in ? from linalg import * File "/usr/lib/python2.4/site-packages/numpy/linalg/linalg.py", line 25,= =20 in ? from numpy.linalg import lapack_lite ImportError: /usr/lib/python2.4/site-packages/numpy/linalg/lapack_lite.so:= =20 undefined symbol: s_cat (The other method, where scipy fails, I'm asking for help on the scipy-user= =20 list.)) I suspect that there's a bit of out-of-sync with the packages, but am not=20 sure. Bottom line question: how do I get both installed at once? Thanks! James |
From: Robert K. <rob...@gm...> - 2006-10-19 19:29:53
|
James K. Gruetzner wrote: > I'm using Fedora core 5, that insect-laden wonder, which includes python > 2.4.3. I'm trying to install numpy (scipy-core) and scipy (the rest). I > can't seem to get around package conflicts. I've tried two methods, one in > which numpy fails and one in which scipy fails. > > METHOD 1 (numpy fails) > Download numpy (numpy-1.0r3); untarball and install. > Test by running python and importing numpy. Looks OK, but notes "running from > numpy source directory". So, test by running python from a different > directory and importing numpy. Get the following error: > >>>> import numpy > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.4/site-packages/numpy/__init__.py", line 40, in ? > import linalg > File "/usr/lib/python2.4/site-packages/numpy/linalg/__init__.py", line 4, > in ? > from linalg import * > File "/usr/lib/python2.4/site-packages/numpy/linalg/linalg.py", line 25, > in ? > from numpy.linalg import lapack_lite > ImportError: /usr/lib/python2.4/site-packages/numpy/linalg/lapack_lite.so: > undefined symbol: s_cat It looks like you linked against a FORTRAN LAPACK, but didn't manage to link the FORTRAN runtime library libg2c. Can you give us the output of your 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 |
From: George S. <geo...@gm...> - 2006-10-27 04:00:21
|
Robert Kern <robert.kern <at> gmail.com> writes: > It looks like you linked against a FORTRAN LAPACK, but didn't manage to link the > FORTRAN runtime library libg2c. Can you give us the output of your build? > I just installed Numpy, ATLAS and LAPACK on Centos a few hours ago and I got the exact same error. You're right, libg2c is never linked. Here's a sample line from the linking: gcc -pthread -shared build/temp.linux-i686-2.4/numpy/linalg/lapack_litemodule.o -L/usr/local/lib/atlas/ -llapack -lptf77blas -lptcblas -latlas -o build/lib.linux-i686-2.4/numpy/linalg/lapack_lite.so I've been looking into numpy's distutils for the last hour or so but didn't track down the problem yet; something seems to be broken with Redhat's setup... George |
From: Robert K. <rob...@gm...> - 2006-10-27 05:05:15
|
George Sakkis wrote: > Robert Kern <robert.kern <at> gmail.com> writes: > >> It looks like you linked against a FORTRAN LAPACK, but didn't manage to link > the >> FORTRAN runtime library libg2c. Can you give us the output of your build? >> > > I just installed Numpy, ATLAS and LAPACK on Centos a few hours ago and I got the > exact same error. You're right, libg2c is never linked. Here's a sample line > from the linking: > > gcc -pthread -shared build/temp.linux-i686-2.4/numpy/linalg/lapack_litemodule.o > -L/usr/local/lib/atlas/ -llapack -lptf77blas -lptcblas -latlas -o > build/lib.linux-i686-2.4/numpy/linalg/lapack_lite.so > > I've been looking into numpy's distutils for the last hour or so but didn't > track down the problem yet; something seems to be broken with Redhat's setup... Did you do anything to configure the libraries for ATLAS? Like editing site.cfg? If so, you will need to add -lg2c after -latlas. -- 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 |