[SciPy-user] problem building scipy : liblapack.so not found....

Johann Cohen-Tanugi cohen@slac.stanford....
Mon Nov 12 16:02:24 CST 2007

I have the current SVN trunk, and I built lapack and ATLAS following the
doc in the scipy web site. I also built numpy from SVN.
Now when trying toinstall scipy I get :
[cohen@localhost scipy-svn]$ su -c 'python setup.py install'
Traceback (most recent call last):
  File "setup.py", line 92, in <module>
  File "setup.py", line 63, in setup_package
    from numpy.distutils.core import setup
  File "/usr/lib/python2.5/site-packages/numpy/__init__.py", line 43, in
    import linalg
  File "/usr/lib/python2.5/site-packages/numpy/linalg/__init__.py", line
4, in <module>
    from linalg import *
  File "/usr/lib/python2.5/site-packages/numpy/linalg/linalg.py", line
25, in <module>
    from numpy.linalg import lapack_lite
ImportError: liblapack.so: cannot open shared object file: No such file
or directory

but I do have this library:
[cohen@localhost scipy-svn]$ ls -l /usr/local/lib/liblapack.so
lrwxrwxrwx 1 root root 33 2007-11-12 09:29 /usr/local/lib/liblapack.so
-> /usr/local/atlas/lib/liblapack.so
and it should be in my paths.
Moreover, I can issue the offending line without problem:
[cohen@localhost scipy-svn]$ ipython
Python 2.5 (r25:51908, Oct 19 2007, 09:47:40)
Type "copyright", "credits" or "license" for more information.

IPython 0.8.2.svn.r2848 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.

In [1]: from numpy.linalg import lapack_lite

In [2]: dir(lapack_lite)

\What is going on?

More information about the SciPy-user mailing list