Re: [Boost-users] gcc problems on mac os 10.6...

Thanks for the answer ! It seems that you have a custom Python installed in /Library/Frameworks/Python. framework, and the build process prefers this one instead of the "system" /System/Library/Frameworks/Python.framework. When I installed the custom 2.5 one from python.org, I had the same error, because the build process picked up this custom install of Python. I uninstalled it, and the build picked up the system python, which worked well. The thing is that the Python from Python.org is 32 bits. The python installed with mac os 10.6 is 64 bits. I checked that using :
import struct struct.calcsize("P")*8
Returns 32 on the python installed from python.org (in fact you have to specify you want a 64 bit python when configuring I think)

The thing is that the Python from Python.org is 32 bits.
The python installed with mac os 10.6 is 64 bits.
I checked that using :
import struct struct.calcsize("P")*8
Just for the record, the python installed with Mac OS is not just 64-bit, it's (like all other Snow Leopard binaries) a 3-way universal binary containing the executable for i386, x86_64, and ppc (32-bit) architectures (on Leopard, it was full 4-way universal binary - i386, x86_64, ppc, ppc64). It's just the policy of the OS to choose x86_64 variant of an executable when more than one architecture is available in the universal binary, and the default policy can be changed for a specific command using the "arch" command. The 32-bit variant returns "32" (launched with the command: arch -i386 python -c 'import struct; print struct.calcsize("P")*8'
participants (2)
-
Boris Dušek
-
Wong Hua