{"id":1514,"date":"2021-03-17T15:44:05","date_gmt":"2021-03-17T13:44:05","guid":{"rendered":"https:\/\/saladtomatonion.com\/blog\/?p=1514"},"modified":"2021-07-13T11:21:09","modified_gmt":"2021-07-13T09:21:09","slug":"compiler-python-ldap-sous-macos","status":"publish","type":"post","link":"https:\/\/saladtomatonion.com\/blog\/2021\/03\/17\/compiler-python-ldap-sous-macos\/","title":{"rendered":"Compiler python-ldap sous MacOS"},"content":{"rendered":"\n<p>Aujourd&rsquo;hui, j&rsquo;ai voulu installer <code>python-ldap<\/code> sur un Mac r\u00e9cent et je me suis heurt\u00e9 \u00e0 un probl\u00e8me: le compilateur ne trouvait pas le fichier d&rsquo;en-t\u00eate <code>sasl.h<\/code>. En fait, les <em>headers<\/em> ont \u00e9t\u00e9 d\u00e9plac\u00e9 il y a quelques ann\u00e9es (\u00e0 partir de MacOS Mavericks?) et ne sont plus sous <code>\/usr\/include<\/code>. <\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Mais il suffit de demander aux outils de ligne de commande de <strong>XCode<\/strong> pour savoir o\u00f9 ils sont!<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\n$ xcrun --show-sdk-path\n<\/pre><\/div>\n\n\n<p>Donc, pour installer <code>python-ldap<\/code>, on peut tout simplement faire:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ pip install python-ldap \\\n      --global-option=build_ext \\\n      --global-option=&quot;-I$(xcrun --show-sdk-path)\/usr\/include\/sasl&quot;\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">Source<\/h4>\n\n\n\n<p>Je n&rsquo;ai rien invent\u00e9, mes informations viennent de l\u00e0: <a href=\"https:\/\/stackoverflow.com\/questions\/22079173\/installing-py-ldap-on-mac-os-x-mavericks-missing-sasl-h\">https:\/\/stackoverflow.com\/questions\/22079173\/installing-py-ldap-on-mac-os-x-mavericks-missing-sasl-h<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Aujourd&rsquo;hui, j&rsquo;ai voulu installer python-ldap sur un Mac r\u00e9cent et je me suis heurt\u00e9 \u00e0 un probl\u00e8me: le compilateur ne trouvait pas le fichier d&rsquo;en-t\u00eate sasl.h. En fait, les headers ont \u00e9t\u00e9 d\u00e9plac\u00e9 il&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":1517,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[4],"tags":[350,353,351,352,38,354],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/saladtomatonion.com\/blog\/wp-content\/uploads\/2021\/03\/python-pip.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/saladtomatonion.com\/blog\/wp-json\/wp\/v2\/posts\/1514"}],"collection":[{"href":"https:\/\/saladtomatonion.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/saladtomatonion.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/saladtomatonion.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/saladtomatonion.com\/blog\/wp-json\/wp\/v2\/comments?post=1514"}],"version-history":[{"count":6,"href":"https:\/\/saladtomatonion.com\/blog\/wp-json\/wp\/v2\/posts\/1514\/revisions"}],"predecessor-version":[{"id":1544,"href":"https:\/\/saladtomatonion.com\/blog\/wp-json\/wp\/v2\/posts\/1514\/revisions\/1544"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/saladtomatonion.com\/blog\/wp-json\/wp\/v2\/media\/1517"}],"wp:attachment":[{"href":"https:\/\/saladtomatonion.com\/blog\/wp-json\/wp\/v2\/media?parent=1514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/saladtomatonion.com\/blog\/wp-json\/wp\/v2\/categories?post=1514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/saladtomatonion.com\/blog\/wp-json\/wp\/v2\/tags?post=1514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}