在Mac狮子的Python 2.5.6生成错误 [英] Python 2.5.6 build error on Mac Lion

查看:269
本文介绍了在Mac狮子的Python 2.5.6生成错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是我想做些什么。
使用的web2py与MySQL。

Here is what I would like to do. Use web2py with MySQL.

要做到这一点,我需要使用源web2py的,而不是web2py.app
要使用web2py的,我需要的Python 2.5

To do that, I need to use source web2py rather than web2py.app To use web2py, I need Python 2.5

我有麻烦建设和安装Python 2.5

I am having trouble building and installing Python 2.5

我下载了Python的发布页的Python-2.5.6.tgz。
现在,我确实

I downloaded Python-2.5.6.tgz from Python release page. Now, I did

./配置

然后

然后,我得到以下错误。

Then, I get the following error.

GCC -c -fno严格走样-Wno长双-no-cpp- preCOMP
  -mno熔附MADD -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict的原型-I。 -IInclude -I./Include -DPy_BUILD_CORE -o模块/ python.o ./Modules/python.c
  CC1:错误:无法识别的命令行选项
  -Wno长双令: * 的[模块/ python.o]错误1

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

任何人可以帮助我如何摆脱这种错误,并安装Python 2.5?

Can anybody help me how to get rid of this error and install Python 2.5?

下面是gcc我​​使用

Here is gcc I am using

gcc版本4.2.1(基于苹果公司建立5658)(LLVM建设
  2336.9.00)

gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)

您的帮助将大大AP preciated。
谢谢你。

Your help would be greatly appreciated. Thanks.

推荐答案

web2py的正常工作与诺安股票的Python 2.7。除非你有一个令人信服的理由使用2.5,坚持使用2.7。

web2py works fine with Lion's stock Python 2.7. Unless you have a compelling reason to use 2.5, stick with 2.7.

这篇关于在Mac狮子的Python 2.5.6生成错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆