Tom*_*Tom 36 python macos installation xcode powerpc
bash-3.2$ sudo easy_install appscript  
Password:  
Searching for appscript  
Reading http://pypi.python.org/simple/appscript/  
Reading http://appscript.sourceforge.net  
Best match: appscript 1.0.0  
Downloading http://pypi.python.org/packages/source/a/appscript/appscript-1.0.0.tar.gz#md5=6619b637037ea0f391f45870c13ae38a  
Processing appscript-1.0.0.tar.gz  
Running appscript-1.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-C4d1az/appscript-1.0.0/egg-dist-tmp-yVTHww  
/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  
我是一个相当大的菜鸟(我已经学会了使用python和unix一点,但我从来没有处理安装.)早些时候我收到了与gcc-4.2无关的错误,我发现了一些建议重新安装XCode的帖子.我选择4.0(糟糕的选择?)现在我明白了.我不知道该做什么.
Tam*_*más 78
升级到XCode 4之后,这发生在我身上; 我没有时间弄清楚升级过程中出了什么问题(或者这是否是预期的行为),但以下解决方法对我有用:
sudo env ARCHFLAGS="-arch i386" easy_install whatever
该ARCHFLAGS技巧可与setup.py以及:
env ARCHFLAGS="-arch i386 -arch x86_64" python setup.py install
Ane*_*apu 15
我在这里找到了另一种解决方案,一劳永逸地解决了这个问题.事实证明,XCode4仍然具有ppc汇编程序.你只需要在正确的位置使用符号链接:
$ sudo ln -s /Developer/Platforms/iPhoneOS.platform/Developer/usr/libexec/gcc/darwin/ppc /Developer/usr/libexec/gcc/darwin
$ sudo ln -s /Developer/Platforms/iPhoneOS.platform/Developer/usr/libexec/gcc/darwin/ppc /usr/libexec/gcc/darwin
修复了在Snow Leopard上安装XCode4的问题.
编辑:我尝试了其他解决方案,在某些情况下工作,但总是遇到一个硬件编码PPC要求的软件包.提供PPC汇编程序一劳永逸地摆脱了所有这些问题.
在 Mac OS X 10.6 上使用系统 Python,您需要安装 Apple Xcode 开发人员工具中的 gcc-4.2 来构建扩展模块,就像使用 Appscript 一样。其他产品可能需要 Xcode gcc-4.0,因此您应该同时安装它们。他们共存得很好。
| 归档时间: | 
 | 
| 查看次数: | 9144 次 | 
| 最近记录: |