mailRe: Compiling on Mac OS 10.4


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Tyler Reddy on October 02, 2008 - 18:21:
I'm looking at the possibility that it is a problem with the python header file
as suggested in the first solution message. I haven't found a distribution of
the 'Python Development Files' that are mentioned that I can open on a mac. I
did find one with an .rpm extension, and I tried using the RPM management
package on the mac, but that seems like it could be another project..

Seems a bit odd that my Python.h file is in a Sparkky directory, but not also in
a Python base install type directory, no?

I've tried installing a few different versions of Python, include the most
recent (2.6), but none of them seem to change the output of 'locate Python.h'
Also, updating to 2.6 causes a number of errors, starting the output claiming
that various dependencies are not installed, and then after re-installing them,
there seems to be other problems. Anyways, that's not the issue I'm having so
here's the relevant output:

locate Python.h

/Applications/Sparky.app/Contents/Resources/python2.4/include/python2.4/Python.h

for the machine I'm trying to do the curve fitting on.

For another mac I've tested,
Output:
locate Python.h

/Applications/Sparky.app/Contents/Resources/python2.4/include/python2.4/Python.h
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/Python.framework/Vers
ions/2.3/include/python2.3/Python.h
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Python.framework/Versi
ons/2.3/include/python2.3/Python.h
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/wx-2.5/wx/wxPython/wxPython.h
/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/Pytho
n.h
/sw/include/python2.4/Python.h
/sw/share/doc/python24/html/ext/callingPython.html
/sw/share/doc/python24/html/ext/refcountsInPython.html
/usr/include/wx-2.5/wx/wxPython/wxPython.h




Quoting Edward d'Auvergne <edward@xxxxxxxxxxxxx>:

Hi,

Welcome to the relax users mailing list.  I've seen this problem
before but can't remember exactly what is causing it.  We should be
able to fix this though.  I'm pretty sure that the suggestions on the
internet of using distutils for this are out of place.  I use
distutils for the minfx package which is a dependency for relax 1.3.1
(it used to be part of relax 1.2.x but was spun out as its own project
for other people to use).  But relax doesn't use distutils, so I think
these suggestions for distutils on the internet are rubbish - just
trolls trying to convince innocent users that the developers of the
software should use distutils rather than the currently used
compilation and installation methods.

This problem has been encountered before by Douglas Kojetin "douglas
dot kojetin att gmail dot com"
(https://mail.gna.org/public/relax-devel/2006-01/msg00011.html).  I
think you'll find a solution here:
https://mail.gna.org/public/relax-devel/2006-01/msg00014.html.  The
thread continues into the next month here:
https://mail.gna.org/public/relax-devel/2006-02/msg00000.html.  Don't
worry about the descriptions about using 'make', we've switched
everything in relax to using 'scons'.  Anyway, I hope this helps.
Otherwise we'll have to find another solution.

Regards,

Edward



On Wed, Oct 1, 2008 at 9:43 PM, Tyler Reddy <TREDDY@xxxxxx> wrote:
I've install all the dependencies that are documented, and I'd like to get the curve fitting portion of relax working on Mac OS 10.4. When I type 'scons' in
the relax directory, I get an error with some undefined symbols, as below. A
brief internet search seems to suggest that I need to use something call
'distutils,' but I'm not sure how this works! Any help would be appreciated.

Tyler

Output:

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -o maths_fns/relax_fit.so -bundle -bundle_loader
/Library/Frameworks/Python.framework/Versions/2.5/bin/python -dynamic math
s_fns/c_chi2.os maths_fns/exponential.os maths_fns/relax_fit.os
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
_PyCObject_AsVoidPtr
_PyCObject_Type
_PyErr_Format
_PyExc_RuntimeError
_PyImport_ImportModule
_PyObject_GetAttrString
_PyArg_ParseTuple
_PyArg_ParseTupleAndKeywords
_PyErr_Print
_PyErr_SetString
_PyExc_ImportError
_PyList_New
_PyList_SetItem
_PyList_Type
_PyType_IsSubtype
_Py_BuildValue
_Py_InitModule4
__Py_NoneStruct
collect2: ld returned 1 exit status
scons: *** [maths_fns/relax_fit.so] Error 1
scons: building terminated because of errors.


_______________________________________________
relax (http://nmr-relax.com)

This is the relax-users mailing list
relax-users@xxxxxxx

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-users


_______________________________________________
relax (http://nmr-relax.com)

This is the relax-users mailing list
relax-users@xxxxxxx

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-users







Related Messages


Powered by MHonArc, Updated Mon Oct 06 21:20:11 2008