Installing Python 2.5.2 on OS X 10.6
I am installing Python 2.5.2 on my Mac (OSX 10.6).
I downloaded the source, ran ./configure
开发者_开发技巧, and then ran make
. I received this error:
gcc -c -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -o Modules/python.o ./Modules/python.c
cc1: error: unrecognized command line option "-Wno-long-double"
make: *** [Modules/python.o] Error 1
What's the deal?
See my answer here. While you can build it from scratch with the suggested patches, it may be a lot easier to just download a prebuilt installer from python.org as suggested there.
精彩评论