[SciPy-user] install problems
Eric Zollars
zollars at caltech.edu
Mon May 2 20:42:28 EDT 2005
On Mon, 2005-05-02 at 11:26, Darren Dale wrote:
> Hi Eric,
>
> On Monday 02 May 2005 2:11 pm, Eric Zollars wrote:
> > There are ATLAS libraries installed on the system that are incompatible
> > with the scipy install. I have built my own ATLAS/LAPACK libraries but
> > how do I block setup.py from looking in /usr/lib and /usr/local/lib? I
> > have tried setting $BLAS and $LAPACK, but that doesn't help. I still
> > get Import Errors with the wrong library listed.
> >
>
> Try editing scipy_core/scipy_distutils/sample_site.cfg and save it as
> site.cfg. Also, if you are not installing from CVS, you need to edit six
> lines in system_info.py, in that same directory, starting at line #285
>
> try:
> f = __file__
> except NameError,msg:
> f = sys.argv[0]
> cf = os.path.join(os.path.split(os.path.abspath(f))[0],
> 'site.cfg')
>
> hope this helps,
> Darren
Thanks, that blocked setup.py from getting the wrong libs but nothing I
do seems to get scipy installed.
I had to modify site.cfg:
[DEFAULT]
library_dirs = /ul/zollars/lib
include_dirs = /ul/zollars/include
because setup continued to find the bad libs when the default system lib
directories were listed. Will this be a problem?
[atlas]
library_dirs = /ul/zollars/opt/ATLAS/lib/Linux_g77_32
atlas_libs = lapack_g77_32, f77blas_g77_32, cblas_g77_32,atlas_g77_32
I am getting this with setup.py install:
gcc -pthread -shared
build/temp.linux-ppc64-2.4/build/src/atlas_version_-0x74e85a32.o
-L/ul/zollars/opt/ATLAS/lib/Linux_g77_32 -latlas_g77_32 -o
build/temp.linux-ppc64-2.4/atlas_version.so
FOUND:
libraries = ['lapack_g77_32', 'f77blas_g77_32', 'cblas_g77_32',
'atlas_g77_32']
library_dirs = ['/ul/zollars/opt/ATLAS/lib/Linux_g77_32']
language = c
define_macros = [('ATLAS_INFO', '"\\"3.4.2\\""')]
lapack_opt_info:
atlas_threads_info:
scipy_distutils.system_info.atlas_threads_info
scipy_core/scipy_distutils/system_info.py:598: UserWarning:
*********************************************************************
Could not find lapack library within the ATLAS installation.
*********************************************************************
I built the full lapack library according to the instructions with
ATLAS. What else can I check?
I have also tried setting the $BLAS and $LAPACK variables which do lead
to a successful scipy install, but then fails the
t=scipy.test(level=1). In this case the errors indicate problems with
the scipy.linalg module, further suggesting problems with LAPACK. But I
don't know what else to check.
Any suggestions?
Eric
More information about the SciPy-User
mailing list