Back
When I run the following command:
sudo pip install python-ldap
I get this error:
In file included from Modules/LDAPObject.c:9:
Modules/errors.h:8: fatal error: lber.h: No such file or directory
Any ideas on how to fix this?
You can use the below-mentioned command if you're using Ubuntu, the package is called libldap2-dev.
For Ubuntu:
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
For RedHat/CentOS:
sudo yum install python-devel openldap-devel
31k questions
32.8k answers
501 comments
693 users