ubuntu安装python-ldap模块

 

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

今天安装一个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模块了

 

posted @ 2019-03-11 14:59  可爱的红领巾  阅读(1825)  评论(0编辑  收藏  举报