本文介绍了Kerberos安装错误,错误:安装脚本退出,错误:命令"i686-linux-gnu-gcc"失败,退出状态为1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试安装python kerbos库,setup.py失败,并显示以下内容.我已经完成了sudo apt-get update和sudo apt-get install python-dev(按此顺序).这是该过程的完整引用.
I am trying to install python kerbos library, setup.py fails with following. I have already done sudo apt-get update and sudo apt-get install python-dev(in that order). Here is the complete trackback of the process.
vaibhav@vaibhav-UCVN:~/Downloads/requests-kerberos-master$ sudo ./setup.py install
running install
running bdist_egg
running egg_info
writing requirements to requests_kerberos.egg-info/requires.txt
writing requests_kerberos.egg-info/PKG-INFO
writing top-level names to requests_kerberos.egg-info/top_level.txt
writing dependency_links to requests_kerberos.egg-info/dependency_links.txt
reading manifest file 'requests_kerberos.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'requests_kerberos.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-i686/egg
running install_lib
running build_py
creating build/bdist.linux-i686/egg
creating build/bdist.linux-i686/egg/requests_kerberos
copying build/lib.linux-i686-2.7/requests_kerberos/compat.py -> build/bdist.linux-i686/egg/requests_kerberos
copying build/lib.linux-i686-2.7/requests_kerberos/__init__.py -> build/bdist.linux-i686/egg/requests_kerberos
copying build/lib.linux-i686-2.7/requests_kerberos/exceptions.py -> build/bdist.linux-i686/egg/requests_kerberos
copying build/lib.linux-i686-2.7/requests_kerberos/kerberos_.py -> build/bdist.linux-i686/egg/requests_kerberos
byte-compiling build/bdist.linux-i686/egg/requests_kerberos/compat.py to compat.pyc
byte-compiling build/bdist.linux-i686/egg/requests_kerberos/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/requests_kerberos/exceptions.py to exceptions.pyc
byte-compiling build/bdist.linux-i686/egg/requests_kerberos/kerberos_.py to kerberos_.pyc
creating build/bdist.linux-i686/egg/EGG-INFO
copying requests_kerberos.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO
copying requests_kerberos.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying requests_kerberos.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying requests_kerberos.egg-info/requires.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying requests_kerberos.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/requests_kerberos-0.7.0-py2.7.egg' and adding 'build/bdist.linux-i686/egg' to it
removing 'build/bdist.linux-i686/egg' (and everything under it)
Processing requests_kerberos-0.7.0-py2.7.egg
Removing /usr/local/lib/python2.7/dist-packages/requests_kerberos-0.7.0-py2.7.egg
Copying requests_kerberos-0.7.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
requests-kerberos 0.7.0 is already the active version in easy-install.pth
Installed /usr/local/lib/python2.7/dist-packages/requests_kerberos-0.7.0-py2.7.egg
Processing dependencies for requests-kerberos==0.7.0
Searching for kerberos==1.1.1
Reading https://pypi.python.org/simple/kerberos/
Best match: kerberos 1.1.1
Downloading https://pypi.python.org/packages/source/k/kerberos/kerberos-1.1.1.tar.gz#md5=09ff604748b8c32dc9698e714f32b8a5
Processing kerberos-1.1.1.tar.gz
Writing /tmp/easy_install-CEXP8g/kerberos-1.1.1/setup.cfg
Running kerberos-1.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-CEXP8g/kerberos-1.1.1/egg-dist-tmp-snGH08
i686-linux-gnu-gcc: error: sh:: No such file or directory
i686-linux-gnu-gcc: error: 1:: No such file or directory
i686-linux-gnu-gcc: error: krb5-config:: No such file or directory
i686-linux-gnu-gcc: error: not: No such file or directory
i686-linux-gnu-gcc: error: found: No such file or directory
error: Setup script exited with error: command 'i686-linux-gnu-gcc' failed with exit status 1
推荐答案
基于此处的输出:
i686-linux-gnu-gcc: error: sh:: No such file or directory
i686-linux-gnu-gcc: error: 1:: No such file or directory
i686-linux-gnu-gcc: error: krb5-config:: No such file or directory
i686-linux-gnu-gcc: error: not: No such file or directory
i686-linux-gnu-gcc: error: found: No such file or directory
您似乎丢失了krb5-config
.您可以从Ubuntu或Debian中的libkrb5-dev
软件包中安装它.
it looks like you're missing krb5-config
. You can install it from the libkrb5-dev
package in Ubuntu or Debian.
这篇关于Kerberos安装错误,错误:安装脚本退出,错误:命令"i686-linux-gnu-gcc"失败,退出状态为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!