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模块了

猜你喜欢

转载自www.cnblogs.com/zhaoyunlong/p/10510631.html
今日推荐