Skip to content

Instantly share code, notes, and snippets.

@rsperl
Last active July 25, 2022 16:07
Show Gist options
  • Select an option

  • Save rsperl/d40a123d32ba31f54228c2d76bfaec9f to your computer and use it in GitHub Desktop.

Select an option

Save rsperl/d40a123d32ba31f54228c2d76bfaec9f to your computer and use it in GitHub Desktop.
fix sasl.h is required error #python #ldap #snippet
# when you get the error "sasl.h is required"
xcrun --show-sdk-path
sudo ln -s <the_path_from_above_command>/usr/include /usr/include
# if you get "Operation not permitted," you probably need to disable SIP:
# reboot, hold down cmd-R, choose Utilities -> Terminal, type "csrutil disable,"
# reboot, try the steps above again
pip install python-ldap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment