[Numpy-discussion] ImportError: libatlas.so: cannot open shared object file: No such file or directory

Jose Borreguero borreguero@gmail....
Thu Mar 17 13:15:20 CDT 2011


Unfortunately it didn't work. I did:
> export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/atlas/lib
> python setup.py build
> python setup.py install

Then in another terminal
> export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/atlas/lib
> python
>>> import numpy
>>>...
>>>from numpy.linalg import lapack_lite
>>> ImportError: libatlas.so: cannot open shared object file: No such file
or directory

However, I used a different environment variable:
> export LD_LIBRARY_PATH=/usr/local/atlas/lib
> python
>>> import numpy
>>>...
>>>from numpy.linalg import lapack_lite
>>>ImportError: libifport.so.5: cannot open shared object file: No such file
or directory

I located libifport.so.5 and added the directory to LD_LIBRARY_PATH:
>export
LD_LIBRARY_PATH=/usr/local/atlas/lib:/opt/intel/Compiler/11.1/069/lib/ia32
> python
>>> import numpy
>>>...
>>>from numpy.linalg import lapack_lite
>>>from numpy.linalg import lapack_lite
ImportError:
/usr/local/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so:
undefined symbol: _gfortran_concat_string

I googled this error, I found some comments on mixing fortran compilers.

I haven't advance much because go from error to error. Maybe I'm mixing
things up by adding directories to LD_LIBRARY_PATH :(

Jose

On Thu, Mar 17, 2011 at 1:35 PM, Ilan Schnell <ischnell@enthought.com>wrote:

> It looks like atlas wasn't linked right.  If you /usr/local/atlas/lib
> to your LIBRARY_PATH environment variable it should work.
>
> - Ilan
>
> On Thu, Mar 17, 2011 at 12:23 PM, Jose Borreguero <borreguero@gmail.com>
> wrote:
> > Dear Numpy/Scipy users,
> >
> > I just installed numpy but I have an error when importing
> >>>> import numpy
> > ....
> >     from numpy.linalg import lapack_lite
> > ImportError: libatlas.so: cannot open shared object file: No such file or
> > directory
> >
> > I have ATLAS libraries under /usr/local/atlas/lib
> > libatlas.a   libcblas.a   libf77blas.a   liblapack.a   libptcblas.a
> > libptf77blas.a
> > libatlas.so  libcblas.so  libf77blas.so  liblapack.so  libptcblas.so
> > libptf77blas.so
> > Aso the header files in  /usr/local/atlas/include
> >
> > This was my site.cfg file:
> > [DEFAULT]
> > library_dirs = /usr/local/atlas/lib
> > include_dirs = /usr/local/atlas/include
> > [blas_opt]
> > libraries = ptf77blas, ptcblas, atlas
> > [lapack_opt]
> > libraries = lapack, ptf77blas, ptcblas, atlas
> >
> > This is the full Traceback:
> >>>> import numpy
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> >   File "/usr/local/lib/python2.7/site-packages/numpy/__init__.py", line
> 136,
> > in <module>
> >     import add_newdocs
> >   File "/usr/local/lib/python2.7/site-packages/numpy/add_newdocs.py",
> line
> > 9, in <module>
> >     from numpy.lib import add_newdoc
> >   File "/usr/local/lib/python2.7/site-packages/numpy/lib/__init__.py",
> line
> > 13, in <module>
> >     from polynomial import *
> >   File "/usr/local/lib/python2.7/site-packages/numpy/lib/polynomial.py",
> > line 17, in <module>
> >     from numpy.linalg import eigvals, lstsq
> >   File "/usr/local/lib/python2.7/site-packages/numpy/linalg/__init__.py",
> > line 48, in <module>
> >     from linalg import *
> >   File "/usr/local/lib/python2.7/site-packages/numpy/linalg/linalg.py",
> line
> > 23, in <module>
> >     from numpy.linalg import lapack_lite
> > ImportError: libatlas.so: cannot open shared object file: No such file or
> > directory
> >
> > I don't understand why libatlas.so cannot be found. Please, any comments
> are
> > welcomed!
> >
> > Jose M. Borreguero
> >
> >
> > _______________________________________________
> > NumPy-Discussion mailing list
> > NumPy-Discussion@scipy.org
> > http://mail.scipy.org/mailman/listinfo/numpy-discussion
> >
> >
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20110317/63d92037/attachment.html 


More information about the NumPy-Discussion mailing list