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

Kevin Dunn kgdunn at gmail.com
Wed Sep 23 16:36:10 EDT 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
question.

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?
Thanks,
Kevin

Executing scons command (pkg is scipy.lib.lapack): /usr/bin/python
"/usr/local/lib/python2.6/dist-packages/numscons/scons-local/scons.py"
-f scipy/lib/lapack/SConstruct -I. scons_tool_path=""
src_dir="scipy/lib/lapack" pkg_name="scipy.lib.lapack" log_level=50
distutils_libdir="../../../../../build/lib.linux-i686-2.6"
distutils_clibdir="../../../../../build/temp.linux-i686-2.6"
distutils_install_prefix="/usr/local/lib/python2.6/dist-packages/scipy/lib/lapack"
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"
include_bootstrap=/usr/local/lib/python2.6/dist-packages/numpy/core/include
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:
    GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
  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