简体   繁体   English

在OS X 10.6上安装Python 2.5.2

[英]Installing Python 2.5.2 on OS X 10.6

I am installing Python 2.5.2 on my Mac (OSX 10.6). 我正在Mac(OSX 10.6)上安装Python 2.5.2。

I downloaded the source, ran ./configure , and then ran make . 我下载了源代码,运行./configure ,然后运行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. 虽然您可以使用建议的补丁程序从头开始构建它,但按照那里的建议从python.org下载预构建的安装程序可能会容易得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM