Installing python-ldap in Ubuntu
2015-06-03 13:50
686 查看
These are the steps to be followed to install python-ldap in Ubuntu. At first,
would throw the following error
To get past this error, we need to install python-dev package
After installing that we ll get the following error
To get past this error, we need to install ldap2-dev package
After installing that we ll get the following error
To get past this error, we need to install libsasl2-dev package
After that
should install python-ldap without any problems.
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.
相关文章推荐
- python 基础学习 正则表达式2(使用)
- 在 Mac OS X 10.10 安装 pyenv 的一个小坑
- python类基本语法笔记
- Python基础 语法特别注意笔记(和Java相比)
- Python基础 语法特别注意笔记(和Java相比)
- wxPython定时器wx.Timer简单应用实例
- Python基于DES算法加密解密实例
- Python使用minidom读写xml的方法
- ipython 学习笔记 2 network graph--NetworkX
- wxpython基本控件-静态文本控件
- Python实现程序的单一实例用法分析
- python简单获取本机计算机名和IP地址的方法
- python的udp服务器多进程编程
- Python自动调用IE打开某个网站的方法
- ipython 学习笔记 1 基础
- Python找出文件中使用率最高的汉字实例详解
- Python实现Windows上气泡提醒效果的方法
- 股票模拟买卖
- Python捕捉和模拟鼠标事件的方法
- Python while、for、生成器、列表推导等语句的执行效率测试