[SciPy-user] blas/lapack issue on a freebsd box...

Robert Kern robert.kern at gmail.com
Tue Dec 5 13:14:37 CST 2006


fred wrote:
> Hi all,
> 
> I'm trying to build scipy and all its stuff on my freebsd box (r6.2).
> (binaries pkg are not yet provided on freebsd ftp servers).
> 
> I have successfully built scipy 0.5.1, but in fact, it fails when I want 
> to import some module:
> 
> IPython 0.7.2 -- An enhanced Interactive Python.
> ?       -> Introduction to IPython's features.
> %magic  -> Information about IPython's 'magic' % functions.
> help    -> Python's own help system.
> object? -> Details about 'object'. ?object also works, ?? prints more.
> 
> In [1]: from scipy.special import jv
> ---------------------------------------------------------------------------

> ImportError: /usr/local/lib/libalapack_r.so.1: Undefined symbol 
> "cblas_dswap"
> 
> As google gives no result about this issue, any suggestion are welcome.
> 
> Cheers,
> 
> PS : python 2.4.3, numpy 1.0r1, scipy 0.5.1, atlas 3.6.0.1, blas 1.0

Check what libraries libalapack_r.so.1 wants to link againt with ldd(1) (at
least that's what I'd do on a Linux; FreeBSD might use a different tool for
this). It looks like your scipy.linalg.flapack module was not compiled against
ATLAS correctly. Can you post the output of the following command (on scipy's
setup.py)?

  python setup.py config

-- 
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


More information about the SciPy-user mailing list