python - Kerberos 安装错误,错误 : Setup script exited with error: command 'i686-linux-gnu-gcc' failed with exit status 1

标签 python ubuntu virtualbox kerberos

我正在尝试安装 python kerbos 库,setup.py 失败并显示以下内容。我已经完成了 sudo apt-get update 和 sudo apt-get install python-dev(按顺序)。这是该过程的完整引用。

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 包安装它。

关于python - Kerberos 安装错误,错误 : Setup script exited with error: command 'i686-linux-gnu-gcc' failed with exit status 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30088355/

相关文章:

python - "*"在 Python 中是什么意思?

linux - 打开文件运行 x 时间 - linux 终端

ubuntu - 如何启用 Pango 以便 ImageMagick 可以在 Mint 下看到它?

php - ffmpeg 从执行的命令行运行,从 mod_fcgid 完成后截断

vagrant - VirtualBox Windows VM 到 Vagrant Base Box

python - 过滤掉没有满足条件的足够行数的组

python - pip3 install tesserocr 给出错误

python - 如何将 pandas loc 索引器转换为字符串?

android - Lollipop 无法在 Genymotion 中启动

powershell - Powershell-VirtualBox克隆脚本错误