From: Dominique O. <dom...@gm...> - 2010-05-11 07:01:39
|
On Mon, May 10, 2010 at 5:59 PM, Eddie Schwalbach <e-s...@no...> wrote: > I'm trying to install pysparse on a Linux cluster with ATLAS 3.8.3 (which > was built with full LAPACK support). ATLAS is located at > /software/ATLAS/3.8.3 > and I'm using Python2.6.4 which is located in the nonstandard location > /home/ejs698/software (which is at the beginning of my PATH and PYTHONPATH). > > I've modified the setup.py file to include the appropriate (I think) library > directories: > > library_dirs_list= > ['/software/ATLAS/3.8.3/lib/','/home/ejs698/software/lib/','/usr/bin/lib/'] > libraries_list = ['f77blas', 'cblas', 'atlas', 'lapack', 'gfortran'] > > I also have the environment variables: > LD_LIBRARY_PATH > /opt/moab/lib:/opt/torque/lib::/software/ATLAS/3.8.3/lib:/home/ejs698/software/lib > ATLAS /software/ATLAS/3.8.3 (this was necessary for getting numpy built > against the correct ATLAS libraries) > > I don't see errors when I run python setup.py install, or when I try > from pysparse import * > However, if I attempt to run any of the tests in the Examples directory, I > get: > > [ejs698@quser04 Examples]$ python jdsym_test.py > Traceback (most recent call last): > File "jdsym_test.py", line 1, in <module> > from pysparse import spmatrix, jdsym, itsolvers > ImportError: /software/ATLAS/lib/liblapack.so: cannot open shared object > file: No such file or directory > > This seems to indicate that pysparse is looking in the wrong place for the > lapack libraries (the correct location is > /software/ATLAS/3.8.3/lib/liblapack.so). Have I missed some environment > variable or setting in the setup.py to properly specify these library > locations? > > Any suggestions are appreciated, and thanks in advance, Hello Eddie, There are no environment variables to set in Pysparse, so no, you haven't missed any. Could you please post the complete output of 'python setup.py build' as well as the result of 'ls -l /software/ATLAS/3.8.3/lib/liblapack.so'? I don't doubt your word that the library is there but am just trying to get the obvious things out of the way first. Also I presume you can run the ATLAS and LAPACK tests with your libraries? Thanks, -- Dominique |