首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装“gcc”命令,退出状态为1

无法安装“gcc”命令,退出状态为1
EN

Stack Overflow用户
提问于 2017-05-23 06:29:07
回答 1查看 1.2K关注 0票数 1

试图使用pip安装京都内阁安装kyoto,但它总是抛出此错误,我已经安装了所有的包,如

代码语言:javascript
复制
sudo yum install python-devel
sudo yum install libevent-devel
sudo yum -y install gcc gcc-c++ kernel-devel
sudo yum -y install python-devel libxslt-devel libffi-devel openssl-devel

但是仍然无法安装这个软件包,它总是在同样的错误中失败。

代码语言:javascript
复制
pip install kyotocabinet
Collecting kyotocabinet
  Using cached kyotocabinet-1.10.tar.gz
Installing collected packages: kyotocabinet
  Running setup.py install for kyotocabinet ... error
    Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-7jpcR9/kyotocabinet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-WXUqOO-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'kyotocabinet' extension
    creating build
    creating build/temp.linux-x86_64-2.7
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include -I/usr/include/python2.7 -c kyotocabinet2.cc -o build/temp.linux-x86_64-2.7/kyotocabinet2.o
    kyotocabinet2.cc:16:22: fatal error: kcpolydb.h: No such file or directory
     #include <kcpolydb.h>
                          ^
    compilation terminated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-7jpcR9/kyotocabinet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-WXUqOO-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-7jpcR9/kyotocabinet/
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

任何帮助都将不胜感激!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-05-23 06:39:57

通过从这个链接安装共同内阁来解决这个问题

http://skipperkongen.dk/2013/02/14/giving-kyotocabinet-a-go/

希望它能帮助其他用户。

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

https://stackoverflow.com/questions/44127321

复制
相关文章

相似问题

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