Python - OS X 에서 python-ldap 설치시 오류
#python, #ldap
OS X 에서 python-ldap 을 설치할 때 아래와 같은 오류가 발생
Modules/LDAPObject.c:18:10: fatal error: 'sasl.h' file not found
#include
^
1 error generated.
error: command 'cc' failed with exit status 1
위와 같은 경우 아래와 같은 명령어를 실행하고
$ xcrun --show-sdk-path
여기에 나오는 path 를 심볼릭 링크로 연결한다.
$ sudo ln -s /usr/include /usr/include
다시 python-ldap 설치하면 된다.
$ sudo pip install python-ldap
Reference