[SciPy-User] [SciPy-user] Compiling scipy on Solaris

Robert Pickel robert.pickel@gmail....
Tue Feb 9 15:25:23 CST 2010


I'm not too sure on this, but hope it helps....

Looking at the "symbol not found" stuff looks like the python library hasn't
been linked properly.

You may want to make sure that libpython is in the path for your linker, it
might be someplace else on your system.







On Tue, Feb 9, 2010 at 1:06 PM, mdekauwe <mdekauwe@gmail.com> wrote:

>
> Hi,
>
> I am trying to install the latest scipy libraries and whilst everything (i
> think) builds without issues I have encountered some relocation issues
> finding libraries.
>
> A number of the basic functionalities work find e.g.
>
> import scipy
>
> a = scipy.arange(10)
>
> However
>
> if I tried to import something from the optimise library, for example
>
> from scipy.optimize import leastsq
>
> ImportError: ld.so.1: python: fatal: relocation error: file
> /users/eow/mgdk/sun4u/lib/python/scipy/optimize/_lbfgsb.so: symbol etime_:
> referenced symbol not found
>
> Now I am not sure to be honest what I am not doing. If it helps...
> ldd -d /users/eow/mgdk/sun4u/lib/python/scipy/optimize/_lbfgsb.so
>
>        libfsu.so.1 =>   /nerc/packages/studio/12.0/SUNWspro/lib/libfsu.so.1
>        libsunmath.so.1 =>
> /nerc/packages/studio/12.0/SUNWspro/lib/libsunmath.so.1
>        libf77compat.so.1 =>
> /nerc/packages/studio/12.0/SUNWspro/lib/libf77compat.so.1
>        libmtsk.so.1 =>  /usr/lib/libmtsk.so.1
>        libc.so.1 =>     /usr/lib/libc.so.1
>        libm.so.1 =>     /usr/lib/libm.so.1
>        libdl.so.1 =>    /usr/lib/libdl.so.1
>        libpthread.so.1 =>       /usr/lib/libpthread.so.1
>        /usr/platform/SUNW,A70/lib/libc_psr.so.1
>        symbol not found: PyCObject_Type
> (/users/eow/mgdk/sun4u/lib/python/scipy/optimize/_lbfgsb.so)
>        symbol not found: PyExc_ImportError
> (/users/eow/mgdk/sun4u/lib/python/scipy/optimize/_lbfgsb.so)
>        symbol not found: PyExc_RuntimeError
> (/users/eow/mgdk/sun4u/lib/python/scipy/optimize/_lbfgsb.so)
>        symbol not found: PyString_Type
> (/users/eow/mgdk/sun4u/lib/python/scipy/optimize/_lbfgsb.so)
>        symbol not found: _Py_NoneStruct
> (/users/eow/mgdk/sun4u/lib/python/scipy/optimize/_lbfgsb.so)
>        symbol not found: PyInt_Type
> (/users/eow/mgdk/sun4u/lib/python/scipy/optimize/_lbfgsb.so)
>        symbol not found: PyType_Type
> (/users/eow/mgdk/sun4u/lib/python/scipy/optimize/_lbfgsb.so)
>        symbol not found: PyComplex_Type
> (/users/eow/mgdk/sun4u/lib/python/scipy/optimize/_lbfgsb.so)
>        symbol not found: PyFloat_Type
> (/users/eow/mgdk/sun4u/lib/python/scipy/optimize/_lbfgsb.so)
>        symbol not found: PyExc_MemoryError
> (/users/eow/mgdk/sun4u/lib/python/scipy/optimize/_lbfgsb.so)
>        symbol not found: PyExc_ValueError
> (/users/eow/mgdk/sun4u/lib/python/scipy/optimize/_lbfgsb.so)
>        symbol not found: PyExc_AttributeError
> (/users/eow/mgdk/sun4u/lib/python/scipy/optimize/_lbfgsb.so)
>        symbol not found: PyExc_TypeError
> (/users/eow/mgdk/sun4u/lib/python/scipy/optimize/_lbfgsb.so)
>
>
> any suggestions would be most appreciated. Many thanks.
>
> Martin
>
>
> --
> View this message in context:
> http://old.nabble.com/Compiling-scipy-on-Solaris-tp27519446p27519446.html
> Sent from the Scipy-User mailing list archive at Nabble.com.
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20100209/17f7f7bb/attachment.html 


More information about the SciPy-User mailing list