[SciPy-dev] Any advice for building SciPy? LAPACK error

Kevin Dunn kgdunn@gmail....
Wed Sep 23 15:36:10 CDT 2009

Hi there,

Yesterday I asked about building Scipy
(http://article.gmane.org/gmane.comp.python.scientific.devel/11832) as
I was following the various instructions
* here: http://www.scipy.org/Installing_SciPy/BuildingGeneral
* and here: http://www.scipy.org/Installing_SciPy/Linux

Since then I discovered the SCons script, so first question: is using
the SCons script the preferred way to build SciPy now? If so, I think
those website should be updated.  If not, please help with the next

Using the setupscons.py script (after cloning and installing numscons
from github, version 0.11.0), I encounter the error, "no lapack found,
necessary for lapack module" when running "python setupscons.py
build".  More details in the traceback below.

For reference:
* Ubuntu 9.04 (Jaunty)
* SciPy revision 5951
* other details about my platform: http://pastebin.com/m26f8d1d1
* and I followed the LAPACK instructions at the bottom of this page
http://www.scipy.org/Installing_SciPy/BuildingGeneral (i.e. I built
LAPACK from source, and I set the environment variable)

Any additional pointers to solve this ?  I thought ATLAS is used
instead of LAPACK; can someone help me understand this?

Executing scons command (pkg is scipy.lib.lapack): /usr/bin/python
-f scipy/lib/lapack/SConstruct -I. scons_tool_path=""
src_dir="scipy/lib/lapack" pkg_name="scipy.lib.lapack" log_level=50
cc_opt=gcc cc_opt_path="/usr/bin" debug=0 f77_opt=gfortran
f77_opt_path="/usr/bin" cxx_opt=g++ cxx_opt_path="/usr/bin"
bypass=0 import_env=0 silent=0 bootstrapping=0
scons: Reading SConscript files ...
Checking if gfortran needs dummy main - MAIN__.
Checking gfortran name mangling - '_', '', lower-case.
Checking for ATLAS ... yes
Checking for F77 LAPACK ... no
RuntimeError: no lapack found, necessary for lapack module:
  File "/home/connectmv/workspace/scipy/scipy/lib/lapack/SConstruct", line 2:
  File "/usr/local/lib/python2.6/dist-packages/numscons/core/numpyenv.py",
line 133:
    build_dir = '$build_dir', src_dir = '$src_dir')
  File "/usr/local/lib/python2.6/dist-packages/numscons/scons-local/scons-local-1.2.0/SCons/Script/SConscript.py",
line 553:
    return apply(_SConscript, [self.fs,] + files, subst_kw)
  File "/usr/local/lib/python2.6/dist-packages/numscons/scons-local/scons-local-1.2.0/SCons/Script/SConscript.py",
line 262:
    exec _file_ in call_stack[-1].globals
  File "/home/connectmv/workspace/scipy/build/scons/scipy/lib/lapack/SConscript",
line 37:
    raise RuntimeError("no lapack found, necessary for lapack module")
error: Error while executing scons command. See above for more information.
If you think it is a problem in numscons, you can also try executing the scons
command with --log-level option for more detailed output of what numscons is
doing, for example --log-level=0; the lowest the level is, the more detailed
the output it.

More information about the Scipy-dev mailing list