R: embedding python in macOS 10.6

tinauser at libero.it tinauser at libero.it
Wed Sep 29 16:26:49 CEST 2010

sorry, my error; in order to achieve what written before, i had to link to the 
libpython2.6.a that i find downloading the surce code.
instead, if I link to the one of the distributed version, i get the following 
missing required architecture x86_64 in file.
i tried to build with the -m32 option,but then to that message, another is 
added for the object file
file was built for i386 which is not the architecture being linked (x86_64)

>----Messaggio originale----
>Da: tinauser at libero.it
>Data: 29/09/2010 16.06
>A: <python-list at python.org>
>Ogg: embedding python in macOS 10.6
>hi there,
>i'm trying to embed python in a c++ code.i'm starting with the example in 
>tutorial.i've problem with setting up the enveiroment.
>I've installed python with the distributed version (i.e., i did not, as a 
>start, build it myself); i added the library where both python.h and 
>are stored and i linked to libpython2.6.a (which is, in the distributed 
>version, an alias).
>the program builds and links correctely, but if I try to run it, i get the 
>following error:
>Could not find platform independent libraries <prefix>
>Could not find platform dependent libraries <exec_prefix>
>Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
>'import site' failed; use -v for traceback
>Traceback (most recent call last):
>  File "<string>", line 1, in <module>
>ImportError: No module named time
>what is the problem?
>in my .profile i have set PATH: /Library/Frameworks/Python.

More information about the Python-list mailing list