python-ldap OS X 10.6和Python 2.6 [英] python-ldap OS X 10.6 and Python 2.6

查看:117
本文介绍了python-ldap OS X 10.6和Python 2.6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试为我的Django项目安装python-ldap - 迄今为止,我们尝试了easy_install,pip,以及建立自己,但仍然收到相同的错误:

Trying to install python-ldap for my Django project -- so far tried easy_install, pip, as well as building myself, but still getting the same errors:

dlopen(/Library/Python/2.6/site-packages/_ldap.so, 2): Symbol not found: _ldap_create_assertion_control_value
Referenced from: /Library/Python/2.6/site-packages/_ldap.so
Expected in: flat namespace
in /Library/Python/2.6/site-packages/_ldap.so

发生了什么?

推荐答案

问题和解决方案已记录 here

The problem and solution are documented here.

总结:10.7 。{0,1}系统工具和头都来自OpenLDAP 2.4.x,而库来自OpenLDAP 2.2.0。解决方案是构建OpenLDAP库,以匹配系统头和链接python-ldap。

Summary: The 10.7.{0,1} system tools and headers are all from OpenLDAP 2.4.x while the libraries are from OpenLDAP 2.2.0. The solution is to build the OpenLDAP libs to match the system headers and link python-ldap with those.

所有信用都转到 Rob McBroom

这篇关于python-ldap OS X 10.6和Python 2.6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆