更新Mac安装ldap失败解决方法 (#613)

pull/578/merge
crisewng 2017-09-24 08:41:42 +08:00 committed by 老广
parent 290872dcad
commit 48ef5c421b
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,10 @@
$ sudo yum -y install `cat rpm_requirements.txt`
$ pip install -r requirements.txt -i https://pypi.doubanio.com/simple
// 解决Mac安装ldap提示 Modules/LDAPObject.c:18:10: fatal error: 'sasl.h' file not found
pip install python-ldap \
--global-option=build_ext \
--global-option="-I$(xcrun --show-sdk-path)/usr/include/sasl"
##### 2.3 准备配置文件