error: Setup script exited with error: command 'gcc' failed with exit status 1

 

解决方法:

原因是版本不兼容,centos默认装了个2.3的。以下指令好使

yum install openldap
yum install openldap24-libs
yum install openldap-clients
yum install openldap-devel
yum install openssl-devel
yum install openldap24-libs-devel
export CPATH=/usr/include/openldap24
export LIBRARY_PATH=/usr/lib/openldap24/     (以上为安装openldap)
pip install python-ldap

相关文章:

  • 2021-05-12
  • 2021-05-29
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-06
  • 2022-12-23
  • 2021-07-09
  • 2022-02-04
  • 2021-08-24
  • 2021-06-16
相关资源
相似解决方案