以上就是给各位分享Ubuntu16.04安装python-ldap报错:error:command''x86_64-linux-gnu-gcc''failedwithexitstatus1,同时本文还
以上就是给各位分享Ubuntu16.04 安装 python-ldap 报错: error: command ''x86_64-linux-gnu-gcc'' failed with exit status 1,同时本文还将给你拓展 error: command ''gcc'' failed with exit status 1 ,python 安装 pyhs2 失败、centos7 python "pandas" ERROR: Command errored out with exit status 1、centos7 安装 mysqlclient 报错 ERROR: Command errored out with exit status 1: python setup.py egg_info Check、centos7.3安装paramiko报error: command 'gcc' failed with exit status 1的解决办法等相关知识,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!
本文目录一览:- Ubuntu16.04 安装 python-ldap 报错: error: command ''x86_64-linux-gnu-gcc'' failed with exit status 1
- error: command ''gcc'' failed with exit status 1 ,python 安装 pyhs2 失败
- centos7 python "pandas" ERROR: Command errored out with exit status 1
- centos7 安装 mysqlclient 报错 ERROR: Command errored out with exit status 1: python setup.py egg_info Check
- centos7.3安装paramiko报error: command 'gcc' failed with exit status 1的解决办法
Ubuntu16.04 安装 python-ldap 报错: error: command ''x86_64-linux-gnu-gcc'' failed with exit status 1
首先执行:
sudo apt-get install libldap2-dev
sudo apt-get install libsasl2-dev
然后执行,就 OK 了:
pip install python-ldap
参考博文内容:
These are the steps to be followed to install python-ldap in Ubuntu. At first,
sudo apt-get install python-ldap
would throw the following error
In file included from Modules/LDAPObject.c:4:0: Modules/common.h:10:20: fatal error: Python.h: No such file or directory compilation terminated. error: command ''gcc'' failed with exit status 1
To get past this error, we need to install python-dev package
sudo apt-get install python-dev
After installing that we ll get the following error
In file included from Modules/LDAPObject.c:9:0: Modules/errors.h:8:18: fatal error: lber.h: No such file or directory compilation terminated.
To get past this error, we need to install ldap2-dev package
sudo apt-get install libldap2-dev
After installing that we ll get the following error
Modules/LDAPObject.c:18:18: fatal error: sasl.h: No such file or directory compilation terminated. error: command ''gcc'' failed with exit status 1
To get past this error, we need to install libsasl2-dev package
sudo apt-get install libsasl2-dev
After that
sudo apt-get install python-ldap
should install python-ldap without any problems.
参考: 参考的解决方法连接地址
error: command ''gcc'' failed with exit status 1 ,python 安装 pyhs2 失败
copying sasl/saslwrapper.pyx -> build/lib.linux-x86_64-2.7/sasl
running build_ext
building ''sasl.saslwrapper'' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/sasl
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Isasl -I/root/anaconda2/include/python2.7 -c sasl/saslwrapper.cpp -o build/temp.linux-x86_64-2.7/sasl/saslwrapper.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from sasl/saslwrapper.cpp:254:0:
sasl/saslwrapper.h:22:23: fatal error: sasl/sasl.h: No such file or directory
#include <sasl/sasl.h>
^
compilation terminated.
error: command ''gcc'' failed with exit status 1
----------------------------------------
Command "/root/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__=''/tmp/pip-build-DLlXxp/sasl/setup.py'';f=getattr(tokenize, ''open'', open)(__file__);code=f.read().replace(''\r\n'', ''\n'');f.close();exec(compile(code, __file__, ''exec''))" install --record /tmp/pip-n5E30n-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-DLlXxp/sasl/
centos7 python "pandas" ERROR: Command errored out with exit status 1
python2.7 版本下用 pip 安装 pandas 一直报错,按照网上的方法升级 setuptools 等操作也都无效。
改用 yum install python-pandas 成功安装
centos7 安装 mysqlclient 报错 ERROR: Command errored out with exit status 1: python setup.py egg_info Check
报错:ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
- 解决方案
ln -s /usr/local/mysql/bin/mysql_config /usr/local/bin/mysql_config
- 还是报错
yum install mysql-devel
centos7.3安装paramiko报error: command 'gcc' failed with exit status 1的解决办法
安装libffi-devel库就可以解决。
yum -y install libffi-devel
今天关于Ubuntu16.04 安装 python-ldap 报错: error: command ''x86_64-linux-gnu-gcc'' failed with exit status 1的介绍到此结束,谢谢您的阅读,有关 error: command ''gcc'' failed with exit status 1 ,python 安装 pyhs2 失败、centos7 python "pandas" ERROR: Command errored out with exit status 1、centos7 安装 mysqlclient 报错 ERROR: Command errored out with exit status 1: python setup.py egg_info Check、centos7.3安装paramiko报error: command 'gcc' failed with exit status 1的解决办法等更多相关知识的信息可以在本站进行查询。
本文标签: