I try to build Sage on sage-debian-live (Live USB) with atlas package from 
debian.
I use the following settings:

#!/bin/sh
# build script to build sage micro release

# build utils
sudo apt-get install binutils gcc gfortran make m4 perl tar 

# use default debian lapack - compatibility and also faster build
sudo apt-get install lapack libatlas-base-dev

# components for build
sudo apt-get install texlive imagemagick
sudo apt-get install dvipng ffmpeg

# server components
sudo apt-get install libssl libssl-dev

# TKinter for e.g. matplotlib
sudo apt-get install tk tk-dev

apt-get clean

# wget sources - take the mirror you like best
# wget -c http://mirror.switch.ch/mirror/sagemath/src/sage-*
# tar xvf sage*

cd sage*

# environmental variables for the build

export SAGE_INSTALL_GCC=no # already installed it system-wide
export SAGE_FAT_BINARY=yes # build for minimal hardware requirements
export SAGE_ATLAS_LIB=/usr/lib # This is the standard library path
export SAGE_MATPLOTLIB_GUI=yes # let you use MATPLOTLIB directly

# building sage (no docs)
make build
sage -t -a
#  make micro_release

The error is:

Moving old directory scipy-0.12.0.p1 to 
/media/sdb2/sage-6.0/local/var/tmp/sage/build/old...
Setting up build directory for scipy-0.12.0.p1
Finished set up
****************************************************
Host system:
Linux debian 3.2.0-4-686-pae #1 SMP Debian 3.2.51-1 i686 GNU/Linux
****************************************************
C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-linux-gnu/4.7/lto-wrapper
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5' 
--with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs 
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr 
--program-suffix=-4.7 --enable-shared --enable-linker-build-id 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-libstdcxx-time=yes 
--enable-gnu-unique-object --enable-plugin --enable-objc-gc 
--enable-targets=all --with-arch-32=i586 --with-tune=generic 
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu 
--target=i486-linux-gnu
Thread model: posix
gcc version 4.7.2 (Debian 4.7.2-5) 
****************************************************
Note: CFLAGS, CXXFLAGS and SHAREDFLAGS are taken from distutils,
      so their current settings are ignored.
Running from scipy source directory.
blas_opt_info:
blas_mkl_info:
  libraries mkl,vml,guide not found in ['/media/sdb2/sage-6.0/local/lib']
  NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
  libraries ptf77blas,ptcblas,atlas not found in 
['/media/sdb2/sage-6.0/local', '/media/sdb2/sage-6.0/local/include', 
'/media/sdb2/sage-6.0/local/lib']
  NOT AVAILABLE

atlas_blas_info:
  libraries f77blas,cblas,atlas not found in ['/media/sdb2/sage-6.0/local', 
'/media/sdb2/sage-6.0/local/include', '/media/sdb2/sage-6.0/local/lib']
  NOT AVAILABLE

/media/sdb2/sage-6.0/local/lib/python2.7/site-packages/numpy/distutils/system_info.py:1494:
 
UserWarning: 
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [atlas]) or by setting
    the ATLAS environment variable.
  warnings.warn(AtlasNotFoundError.__doc__)
blas_info:
  libraries blas not found in ['/media/sdb2/sage-6.0/local', 
'/media/sdb2/sage-6.0/local/include', '/media/sdb2/sage-6.0/local/lib']
  NOT AVAILABLE

/media/sdb2/sage-6.0/local/lib/python2.7/site-packages/numpy/distutils/system_info.py:1503:
 
UserWarning: 
    Blas (http://www.netlib.org/blas/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [blas]) or by setting
    the BLAS environment variable.
  warnings.warn(BlasNotFoundError.__doc__)
blas_src_info:
  NOT AVAILABLE

/media/sdb2/sage-6.0/local/lib/python2.7/site-packages/numpy/distutils/system_info.py:1506:
 
UserWarning: 
    Blas (http://www.netlib.org/blas/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [blas_src]) or by setting
    the BLAS_SRC environment variable.
  warnings.warn(BlasSrcNotFoundError.__doc__)
Traceback (most recent call last):
  File "setup.py", line 165, in <module>
    setup_package()
  File "setup.py", line 161, in setup_package
    configuration=configuration)
  File 
"/media/sdb2/sage-6.0/local/lib/python2.7/site-packages/numpy/distutils/core.py",
 
line 152, in setup
    config = configuration()
  File "setup.py", line 136, in configuration
    config.add_subpackage('scipy')
  File 
"/media/sdb2/sage-6.0/local/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
 
line 1003, in add_subpackage
    caller_level = 2)
  File 
"/media/sdb2/sage-6.0/local/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
 
line 972, in get_subpackage
    caller_level = caller_level + 1)
  File 
"/media/sdb2/sage-6.0/local/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
 
line 909, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "scipy/setup.py", line 9, in configuration
    config.add_subpackage('integrate')
  File 
"/media/sdb2/sage-6.0/local/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
 
line 1003, in add_subpackage
    caller_level = 2)
  File 
"/media/sdb2/sage-6.0/local/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
 
line 972, in get_subpackage
    caller_level = caller_level + 1)
  File 
"/media/sdb2/sage-6.0/local/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
 
line 909, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "scipy/integrate/setup.py", line 11, in configuration
    blas_opt = get_info('blas_opt',notfound_action=2)
  File 
"/media/sdb2/sage-6.0/local/lib/python2.7/site-packages/numpy/distutils/system_info.py",
 
line 338, in get_info
    return cl().get_info(notfound_action)
  File 
"/media/sdb2/sage-6.0/local/lib/python2.7/site-packages/numpy/distutils/system_info.py",
 
line 497, in get_info
    raise self.notfounderror(self.notfounderror.__doc__)
numpy.distutils.system_info.BlasNotFoundError: 
    Blas (http://www.netlib.org/blas/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [blas]) or by setting
    the BLAS environment variable.
Error building scipy.

real    0m0.157s
user    0m0.108s
sys    0m0.044s
************************************************************************
Error installing package scipy-0.12.0.p1
***********************************************************************



It seems scipy can't find the atlas/blas/lapack libraries, although I have 
lots of them installed,

find /usr/lib -name *blas*

gives:

/usr/lib/libf77blas.so
/usr/lib/libcblas.a
/usr/lib/libcblas.so
/usr/lib/libblas.so
/usr/lib/atlas-base/libcblas.so
/usr/lib/atlas-base/libf77blas.so
/usr/lib/atlas-base/libf77blas.a
/usr/lib/atlas-base/libcblas.a
/usr/lib/atlas-base/libptf77blas.a
/usr/lib/atlas-base/libptcblas.a
/usr/lib/atlas-base/atlas/libblas.so
/usr/lib/atlas-base/atlas/libblas.a
/usr/lib/atlas-base/atlas/libblas.so.3
/usr/lib/atlas-base/atlas/libblas.so.3.0
/usr/lib/atlas-base/libcblas.so.3
/usr/lib/atlas-base/libcblas.so.3.0
/usr/lib/atlas-base/libf77blas.so.3
/usr/lib/atlas-base/libf77blas.so.3.0
/usr/lib/libblas
/usr/lib/libblas/libblas.so
/usr/lib/libblas/libblas.a
/usr/lib/libblas/libblas.so.3
/usr/lib/libblas/libblas.so.3.0
/usr/lib/libblas.so.3
/usr/lib/libblas.so.3gf
/usr/lib/libcblas.so.3
/usr/lib/libcblas.so.3gf
/usr/lib/libf77blas.so.3
/usr/lib/libf77blas.so.3gf
/usr/lib/libgslcblas.so.0
/usr/lib/libgslcblas.so.0.0.0
/usr/lib/libreoffice/share/gallery/htmlexpo/cublast.gif
/usr/lib/libreoffice/share/gallery/htmlexpo/cublast_.gif
/usr/lib/pymodules/python2.7/numpy/core/_dotblas.so
/usr/lib/pymodules/python2.7/numpy/core/tests/test_blasdot.py
/usr/lib/pyshared/python2.6/numpy/core/_dotblas.so
/usr/lib/pyshared/python2.7/numpy/core/_dotblas.so

I had a similar error earlier in the build but solved that by installing 
libatlas_base_dev.  Am I using SAGE_ATLAS_LIB correctly?

The documentation (http://www.sagemath.org/doc/installation/source.html) 
says :

SAGE_ATLAS_LIB - if you have an installation of ATLAS on your system and 
you want Sage to use it instead of building and installing its own version 
of ATLAS, set this variable to be the directory containing your ATLAS 
installation. It should contain the files libatlas, liblapack, libcblas, 
libptcblas, libf77blas, and libptf77blas, with extensions .a, .so, or .dylib. 
For backward compatibility, the libraries may also be in the subdirectory 
SAGE_ATLAS_LIB/lib/.

I have all of those, although libptcblas and libptf77blas are only static.
cheers

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to