首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >扭曲安装在Linux上失败

扭曲安装在Linux上失败
EN

Stack Overflow用户
提问于 2011-12-25 10:22:55
回答 1查看 10.3K关注 0票数 17

我试图从我的Linux服务器上的源代码中安装扭曲的Linux。当我使用这个命令setup.py install时,它失败了,下面有一条错误消息:

代码语言:javascript
复制
twisted/runner/portmap.c:10:20: error: Python.h: No such file or directory
twisted/runner/portmap.c:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
twisted/runner/portmap.c:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
twisted/runner/portmap.c:45: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PortmapMethods’
twisted/runner/portmap.c: In function ‘initportmap’:
twisted/runner/portmap.c:55: warning: implicit declaration of function ‘Py_InitModule’
twisted/runner/portmap.c:55: error: ‘PortmapMethods’ undeclared (first use in this function)
twisted/runner/portmap.c:55: error: (Each undeclared identifier is reported only once
twisted/runner/portmap.c:55: error: for each function it appears in.)
error: command 'gcc' failed with exit status 1

顺便说一句,我在那台机器上没有根权限,Python安装在我的文件夹中,而不是/usr/bin

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-12-25 10:48:58

编译器找不到python开发头。要求系统管理员在发生python-devel的情况下安装CentOS,或者在Debian、Ubuntu及其派生程序上安装python-dev。那会有帮助的。

票数 42
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8629198

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档