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

by (100 points)
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)

Browse Categories

...