在mac系统安装python 的ldap模块 尝试多次总是报错找不到sasl.h
百度各种解决办法都试过了还是不行。
最后还是在google找到了解决办法。
$ xcrun --show-sdk-path
$ sudo ln -s <the_path_from_above_command>/usr/include /usr/include
然后
pip install python-ldap
就ok了
原文:http://stackoverflow.com/questions/22079173/installing-py-ldap-on-mac-os-x-mavericks-missing-sasl-h