zoukankan      html  css  js  c++  java
  • Installing python-ldap in Ubuntu

    These are the steps to be followed to install python-ldap in Ubuntu. At first,

    sudo apt-get install python-ldap

    would throw the following error

    In file included from Modules/LDAPObject.c:4:0:
    Modules/common.h:10:20: fatal error: Python.h: No such file or directory compilation terminated.
    error: command 'gcc' failed with exit status 1

    To get past this error, we need to install python-dev package

    sudo apt-get install python-dev

    After installing that we ll get the following error

    In file included from Modules/LDAPObject.c:9:0:
    Modules/errors.h:8:18: fatal error: lber.h: No such file or directory
    compilation terminated.

    To get past this error, we need to install ldap2-dev package

    sudo apt-get install libldap2-dev

    After installing that we ll get the following error

    Modules/LDAPObject.c:18:18: fatal error: sasl.h: No such file or directory compilation terminated.
    error: command 'gcc' failed with exit status 1

    To get past this error, we need to install libsasl2-dev package

    sudo apt-get install libsasl2-dev
    

    After that

    sudo apt-get install python-ldap

    should install python-ldap without any problems.

  • 相关阅读:
    AC_9. 分组背包问题
    AC_8. 二维费用的背包问题
    AC_7混合背包问题
    AC_5. 多重背包问题 II
    AC_4. 多重背包问题 I
    AC_3. 完全背包问题
    小郡肝火锅点餐系统——测试部署发布
    Vue脚手架搭建
    归并排序-总结
    小郡肝火锅点餐系统——项目文档
  • 原文地址:https://www.cnblogs.com/KKSoft/p/8195492.html
Copyright © 2011-2022 走看看