2012-04-10 22 views
1

私はUbuntu 11.10、gcc version 4.6.1を実行しています。コマンド 'gcc'が終了ステータス1(psycoのインストール)で失敗しました

私はサイコをインストールしようとしているが、このエラーを取得維持してきた:

PROCESSOR = 'i386' 
running build 
running build_py 
running build_ext 
building 'psyco._psyco' extension 
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DALL_STATIC=1 -Ic/i386 -I/usr/include/python2.7 -c c/psyco.c -o build/temp.linux-i686-2.7/c/psyco.o 
In file included from c/initialize.h:55:0, 
       from c/psyco.c:14: 
c/mergepoints.c:242:3: error: ‘JUMP_IF_FALSE’ undeclared here (not in a function) 
c/mergepoints.c:242:3: error: ‘JUMP_IF_TRUE’ undeclared here (not in a function) 
c/codegen.c:127:19: warning: ‘psyco_source_condition’ defined but not used [-Wunused-function] 
c/codegen.c:747:10: warning: ‘integer_lshift’ defined but not used [-Wunused-function] 
c/Objects/plistobject.c:115:10: warning: ‘PsycoList_SingletonNew’ defined but not used [-Wunused-function] 
error: command 'gcc' failed with exit status 1 

は私がインストールのpython-setuptoolsのが、何もこれまで働いてきました。ニューヨークの提案をありがとう。

+0

python2.x-dev(xはあなたのpythonバージョン)と同様にbuild-essentialもインストールしてみてください。 – Bartek

+0

両方とも試してみました。最新バージョン –

+0

にインストールされています。Psycoはかなり死んでいます。スピードが必要な場合は、CythonまたはPyPyの使用を検討してください。 –

答えて

3

Googleはあなたの友人です:psycoは、対応するUbuntu bug reportに記載されているように、Python 2.7でビルドしたり動作しません。

なぜPsycoが必要ですか?タイトなループを最適化する必要がある場合は、おそらくCythonがあなたの救助に来ます。

-1

多分あなたは "https://github.com/develersrl/gccwinbinaries" パスをインストールし得るべきである:/ Python26/libに/ distutilsの

:PythonのインストールディレクトリDでdistutils.cfg見つけ、/ mingwの/ binに.Finally:C:/ mingwのとインストールパス:Cを
+0

[ビルド] コンパイラ= mingw32 –

+0

質問者はあなたの答えが非常にあなたのインストールのために非常に特定のWindowsのターゲットである間、彼らはUbuntu、Linuxのディストリビューションを使用していることを示している。 – Avery

関連する問題