在Mint上安装M2Crypto时遇到的问题 [英] problems installing M2Crypto on Mint
本文介绍了在Mint上安装M2Crypto时遇到的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在Mint 12上为python安装M2Crypto。我已经执行了`python setup.py build,但构建失败,陈述了
error:command'gcc'failed with exit status 1
前两行显示Python.h可能有问题:
SWIG / _m2crypto_wrap.c:126:20:致命错误:Python。 h:没有这样的文件或目录
编译终止
如果有人知道需要做什么要解决此问题,请通知我。
编辑
要安装 python-dev
,但我得到以下错误:
以下软件包具有未满足的依赖关系:
python-dev:取决于:python(= 2.6.6-2ubuntu1),但要安装2.7.2-7ubuntu2
E:无法纠正问题,破碎的包
解决方案
你错过了包含 python.h
的python-dev包
I am trying to install M2Crypto for python on Mint 12. I have executed `python setup.py build, but the build fails, stating
error: command 'gcc' failed with exit status 1
the preceding 2 lines show that there may be a problem with Python.h:
SWIG/_m2crypto_wrap.c:126:20: fatal error: Python.h: No such file or directory
compilation terminated
If anyone knows what needs to be done to fix this, please let me know.
EDIT
I have attempted to install python-dev
, but I get the following error:
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
解决方案
It looks that you miss the python-dev package which contains python.h
这篇关于在Mint上安装M2Crypto时遇到的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文