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

mdekauwe mdekauwe@gmail....
Tue Feb 9 15:47:48 CST 2010


Thanks but libpython is definatley in the path, numpy works fine and as I
said it seems all the scipy functions that don't require an extension, I.e
scipy.optimize stuff it struggles to find for example



Robert Pickel wrote:
> 
> 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
>>
> 
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
> 
> 

-- 
View this message in context: http://old.nabble.com/Compiling-scipy-on-Solaris-tp27519446p27522587.html
Sent from the Scipy-User mailing list archive at Nabble.com.



More information about the SciPy-User mailing list