Getting python-ldap installed on OS X
If you want to use Fink, and build a bunch of crap you don’t need, follow these instructions.
If you are like me and prefer to use the libraries that are already installed, just do this:
- If you haven’t already, install XCode.
- Download python-ldap
- Edit setup.cfg. The relevant lines are below:
library_dirs = /Developer/SDKs/MacOSX10.5.sdk/usr/lib/ include_dirs = /Developer/SDKs/MacOSX10.5.sdk/usr/include/ /Developer/SDKs/MacOSX10.5.sdk/usr/include/sasl
- sudo python setup.py install
and extract it.
That’s all!