Thoughts on System Administration

7 July, 2008

Getting python-ldap installed on OS X

Filed under: Python, Quick Tips — Tags: , , — plathrop @ 4:13 pm

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:

  1. If you haven’t already, install XCode.
  2. Download python-ldap
  3. and extract it.

  4. 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
  5. sudo python setup.py install
  6. That’s all!