gcc错误时,我试图安装readline-6.2 [英] gcc error when I'm trying to install readline-6.2

查看:315
本文介绍了gcc错误时,我试图安装readline-6.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能好心帮我出了什么错,当我尝试安装的readline模块,我的CentOS的服务器上新安装的python2.7?



<$ P $海合会p> GCC -pthread -fno严格走样-g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict的原型-fPIC -DHAVE_RL_CALLBACK -DHAVE_RL_CATCH_SIGNAL -DHAVE_RL_COMPLETION_APPEND_CHARACTER - DHAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK -DHAVE_RL_COMPLETION_MATCHES - DHAVE_RL_COMPLETION_SUPPRESS_APPEND - DHAVE_RL_PRE_INPUT_HOOK -I。 -I在/ usr /本地/包括/ python2.7 -c模块/ 2.X / readline.c -o建立/ temp.linux-x86_64-2.7 /模块/ 2.X / readline.o -Wno严格的原型
GCC -pthread -shared编译/ temp.linux-x86_64-2.7 /模块/ 2.X / readline.o的readline / libreadline.a的readline / libhistory.a -lncurses -o建立/ lib.linux-x86_64- 2.7 / readline.so
GCC:的ReadLine / libreadline.a:没有这样的文件或目录
GCC:的ReadLine / libhistory.a:失败的命令海合会:没有这样的文件或目录
错误退出状态为1

非常感谢!

解决方案

readline与Python模块捆绑在一起,并尝试为您构建它,但如果系统无法完成构建,您将看到此错误显示。在我的情况下, patch 从系统中丢失。 yum install patch 为我解决了。


Could anyone kindly help me out what's wrong with the gcc when I am trying to install readline module for my newly installed python2.7 in the CentOS server?

gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC     -DHAVE_RL_CALLBACK -DHAVE_RL_CATCH_SIGNAL -DHAVE_RL_COMPLETION_APPEND_CHARACTER -    DHAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK -DHAVE_RL_COMPLETION_MATCHES -    DHAVE_RL_COMPLETION_SUPPRESS_APPEND -DHAVE_RL_PRE_INPUT_HOOK -I. -I/usr/local/include/python2.7 -c     Modules/2.x/readline.c -o build/temp.linux-x86_64-2.7/Modules/2.x/readline.o -Wno-strict-prototypes
gcc -pthread -shared build/temp.linux-x86_64-2.7/Modules/2.x/readline.o readline/libreadline.a     readline/libhistory.a -lncurses -o build/lib.linux-x86_64-2.7/readline.so
gcc: readline/libreadline.a: No such file or directory
gcc: readline/libhistory.a: No such file or directory
error: command 'gcc' failed with exit status 1

Many Thanks!

解决方案

readline is bundled with the Python module and it attempts to build it for you, but you'll see this error display if your system was unable to complete the build. In my case, patch was missing from the system. yum install patch solved it for me.

这篇关于gcc错误时,我试图安装readline-6.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆