python-ldap OS X 10.6 and Python 2.6

前端 未结 4 1221
-上瘾入骨i
-上瘾入骨i 2021-01-12 09:19

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(         


        
4条回答
  •  盖世英雄少女心
    2021-01-12 09:58

    I had to modify setup.cfg to get this to work on OS X. Here's what I did:

    wget http://python-ldap.cvs.sourceforge.net/viewvc/python-ldap/?view=tar --output-document=python-ldap.tar.gz
    tar xvf python-ldap.tar.gz
    cd python-ldap
    

    Modify the following lines in setup.cfg:

    library_dirs = /usr/local/lib
    include_dirs = /usr/local/include /usr/include/sasl
    libs = ldap lber sasl2 ssl crypto
    

    Then continue with "normal" installation:

    python setup.py build
    sudo python setup.py install
    

提交回复
热议问题