Getting python-ldap running on osx (fink)ΒΆ
It took me quite a lot of time to get python ldap to compile on osx (to use it for testing Plone's LDAPUserFolder). I needed to compile it from source as I'm using a local build of python instead of the standard fink or osx python. In the end it turned out to be not too difficult, if you know the magic incantations.
In fink, install the following:
- openldap23
- openldap23-dev
- openldap23-shlibs
- cyrus-sasl2
- cyrus-sasl2-dev
- cyrus-sasl2-shlibs
Then download python ldap and edit its setup.cfg file's library_dirs and include_dirs lines:
library_dirs = /sw/lib /sw/lib/sasl2 include_dirs = /sw/include /sw/include/sasl
Then you should be able to run sudo python setup.py install just fine.
<pre>sudo ln -s libdb-4.4.dylib libdb-4.3.dylib</pre>