[英]redhat 5.4 python-ldap run error (python2.7)
I install python-ldap-2.4.13 to redhat5.4, and run then get error: 我将python-ldap-2.4.13安装到redhat5.4,然后运行然后出现错误:
Traceback (most recent call last):
File "/usr/local/bin/openerp-server", line 5, in <module>
openerp.cli.main()
File "/usr/local/lib/python2.7/site-packages/openerp-7.0_20130923_231151-py2.7.egg/openerp/cli/__init__.py", line 51, in main
__import__(m)
File "/usr/local/lib/python2.7/site-packages/openerp-7.0_20130923_231151-py2.7.egg/openerp/modules/module.py", line 133, in load_module
mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
File "/usr/local/lib/python2.7/site-packages/openerp-7.0_20130923_231151-py2.7.egg/openerp/addons/auth_ldap/__init__.py", line 21, in <module>
import users_ldap
File "/usr/local/lib/python2.7/site-packages/openerp-7.0_20130923_231151-py2.7.egg/openerp/addons/auth_ldap/users_ldap.py", line 21, in <module>
import ldap
File "/usr/local/lib/python2.7/site-packages/python_ldap-2.4.13-py2.7-linux-x86_64.egg/ldap/__init__.py", line 22, in <module>
import _ldap
ImportError: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.13-py2.7-linux-x86_64.egg/_ldap.so: undefined symbol: ldap_create_assertion_control_value
How can I fix it? 我该如何解决? pls help, thanks very much! 请帮助,非常感谢!
This is the KEY-Point,it work for me! 这是关键点,对我有用!
Your OpenLDAP and the python-ldap library versions are not compatible. 您的OpenLDAP和python-ldap库版本不兼容。 Remove the python-ldap library you have installed, and install a lower version; 删除已安装的python-ldap库,并安装较低版本; try 2.3.13 – Burhan Khalid Oct 11 '13 at 12:40 尝试2.3.13 – Burhan Khalid 2013年10月11日12:40
I had the same issue. 我遇到过同样的问题。 You will have to install python-ldap by modifying setup.cfg. 您将必须通过修改setup.cfg来安装python-ldap。
For me I had to use: /usr/lib64/openldap24 and /usr/include/openldap24 对我来说,我必须使用:/ usr / lib64 / openldap24和/ usr / include / openldap24
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.