2011-07-12 11 views
1

Scrapy 0.12をインストールしようとすると、GCC 4.2コンパイラで再発する問題が発生しています。OS X 10.6での治療のインストールに関する問題

この記事を読んでから私は心配しています。私は良いよりも多くのダメージを与え始めました。

私が逃しているものはありますか?私がしました

:(AppStoreのではなく、CDから)

  • インストールxcode4
  • は、/ usr/binに追加
  • 2.7へのpython 2.6からアップグレードMacPortsの
  • からの依存関係のpythonを再インストール/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" 
+1

あなたがそれを理解できない場合は、治療が必要かどうか再評価するかもしれません。 [urllib](http://docs.python.org/library/urllib.html)と[lxml](http://lxml.de/)を使って〜5行でできることは素晴らしいです。私は信じています。 –

答えて

2

this answerを参照してください。 Xcode 4がインストールされているので、10.6でビルドしようとするApple提供のPythonの標準アーキテクチャからPPCを削除する必要があります。

関連する問題