[python] 'gcc-4.2' failed with exit status
Solution:
add the following before the python command
ARCHFLAGS="-arch i386 -arch x86_64"
example:
ARCHFLAGS="-arch i386 -arch x86_64" python setup.py build
The Error occurs because the compiler tries to make the app for ppc architecture but after Xcode 4 the ppc compiler has been removed.
add the following before the python command
ARCHFLAGS="-arch i386 -arch x86_64"
example:
ARCHFLAGS="-arch i386 -arch x86_64" python setup.py build
The Error occurs because the compiler tries to make the app for ppc architecture but after Xcode 4 the ppc compiler has been removed.
Comments
Post a Comment