Twisted-安装报错, 求大侠分析指导

行间 2015-11-09 01:41:46
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/python2.7/include/python2.7 -c twisted/runner/portmap.c -o build/temp.linux-x86_64-2.7/twisted/runner/portmap.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/twisted/runner/portmap.o -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/twisted/runner/portmap.so
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpython2.7
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
...全文
100 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
行间 2015-11-09
  • 打赏
  • 举报
回复
原来是libpython2.7.so 这个文件路径没有找到.
  • 打赏
  • 举报
回复
cannot find -lpython2.7 看到报错信息没有? 你至少要先安装ipython2.7,你以后安装就使用pip来安装了,自动解决一些软件的依赖问题。

37,720

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧