Installing Python 2.5.2 on OS X 10.6

2019-09-06 13:40发布

问题:

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?

回答1:

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.