2012-05-10 6 views
1

にM2Cryptoをインストールし、私は `のpython setup.pyビルドを実行しているが、ビルドは失敗し、前の2行がその存在を示して問題私はミント12上のPython用M2Cryptoをインストールしようとしていますミント

error: command 'gcc' failed with exit status 1 

を述べますPython.hに問題がある可能性があります。誰もがこの問題を解決するために何をすべきか知っている場合

SWIG/_m2crypto_wrap.c:126:20: fatal error: Python.h: No such file or directory 
compilation terminated 

、私に知らせてください。

The following packages have unmet dependencies: 
python-dev: Depends: python (= 2.6.6-2ubuntu1) but 2.7.2-7ubuntu2 is to be installed 
E: Unable to correct problems, you have held broken packages 

答えて

2

それはあなたがpython.h

+0

試して、次のコマンドを実行します。私は上記のアップデートでエラーを投稿します。 – ewok

+0

@ewok:インストールを修復する 'apt-get install -f'を試してください –

0

コンパイルが含まれているのpython-devパッケージを逃すことになります。私はpython-devをインストールしようとしてきたが、私は次のエラーを取得する

EDIT

最近のDebianでは、UbuntuやMintのような派生物にエラーがあります:

ImportError: /usr/local/lib/python2.7/dist-packages/M2Crypto/__m2crypto.so: undefined symbol: SSLv2_method 

対応する質問と回答here

1

私のpython-devをインストールしようとしましたが、私は壊れたパッケージを持っているというエラーを得た

$sudo apt-get install python-m2crypto

関連する問題