Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Python by (47.6k points)

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?

1 Answer

0 votes
by (106k points)

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

I can't install python-LDAP
Intellipaat-community
by
Tanks a lot !

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Oct 10, 2019 in Python by Sammy (47.6k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...