在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
本文介绍了在Mac系统中安装Python的LDAP模块时遇到找不到sasl.h文件的问题及解决方法。通过使用xcrun命令找到SDK路径并创建软链接到/usr/include目录下,最后通过pip成功安装了python-ldap模块。
1837

被折叠的 条评论
为什么被折叠?



