【发布时间】:2011-07-12 13:34:32
【问题描述】:
在尝试安装 Scrapy 0.12 时,我遇到了 GCC 4.2 编译器反复出现的问题。
阅读了很多关于这方面的帖子,我担心我已经开始弊大于利了。
对我所缺少的有什么建议吗?
我已经:
- 已安装 xcode4(来自应用商店,而非 CD)
- 重新安装了带有来自 macports 的依赖项的 python
- 从 python 2.6 升级到 2.7
- 将 /usr/bin/gcc-4.2 添加到我的 PATH 中
运行简易安装时出现以下错误:
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
src/lxml/lxml.etree.c:161594: fatal error: error writing to -: Broken pipe
compilation terminated.
lipo: can't open input file: /var/folders/bA/bAc9wNqJGCSI4UGlXRPBSk+++TI/-Tmp-//cc6gLxNp.out (No such file or directory)
error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1
我的路径如下:
PATH="/usr/bin/gcc-4.2:/usr/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/Users/zeppo/Downloads/gcc-4.2-5566-darwin8-all.tar/usr:/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php5.3/bin:/Users/zeppo/Sites/dev/cake/console:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin"
【问题讨论】: