模块 一直很头疼好多依赖的模块 

今天安装一个python-ldap  和ldap交互的模块

首先安装的时候会提示我们

compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

这就是典型的 缺少依赖

首先安装

sudo apt-get install libldap2-dev

然后再安装

sudo apt-get install libsasl2-dev

然后就可以继续安装你的python-ldap模块了

 

相关文章:

  • 2022-01-28
  • 2021-12-04
  • 2021-12-07
  • 2022-12-23
  • 2021-06-19
  • 2021-11-20
  • 2022-12-23
猜你喜欢
  • 2022-02-28
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2021-07-28
相关资源
相似解决方案