{"id":434909,"date":"2021-04-18T17:47:18","date_gmt":"2021-04-18T09:47:18","guid":{"rendered":"http:\/\/4563.org\/?p=434909"},"modified":"2021-04-18T17:47:18","modified_gmt":"2021-04-18T09:47:18","slug":"%e6%95%91%e5%8a%a9%ef%bc%8c-mac-%e7%b3%bb%e7%bb%9f%e4%b8%8b-composer-%e6%8a%a5%e9%94%99-protocol-https-not-supported-or-disabled-in-libcurl","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=434909","title":{"rendered":"\u6551\u52a9\uff0c Mac \u7cfb\u7edf\u4e0b composer \u62a5\u9519 Protocol &#8220;https&#8221; not supported or disabled in libcurl"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6551\u52a9\uff0c Mac \u7cfb\u7edf\u4e0b composer \u62a5\u9519 Protocol &#8220;https&#8221; not supported or disabled in libcurl               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tg11 <\/span>  <span><i><\/i> 7<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>composer create \u7684\u65f6\u5019\uff0c\u62a5\u9519<\/p>\n<pre><code>[ComposerDownloaderTransportException] Protocol \"https\" not supported or disabled in libcurl <\/code><\/pre>\n<p>\u4e0a\u7f51\u67e5\u4e86\u540e\u8bf4\u662f\u6ca1\u6709 OpenSSL\uff0c\u4f46\u662f\u6211\u5df2\u7ecf\u5b89\u88c5\u8fc7 OpenSSL \u4e86\uff0ccurl -V \u67e5\u770b\u4e5f\u6709 https \u652f\u6301.<\/p>\n<pre><code>curl 7.64.1 (x86_64-apple-darwin20.3.0) libcurl\/7.64.1 OpenSSL\/1.1.1k zlib\/1.2.11 brotli\/1.0.9 libidn2\/2.3.0 librtmp\/2.3 Release-Date: 2019-03-27 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS brotli HTTPS-proxy IDN IPv6 Largefile libz NTLM NTLM_WB SSL TLS-SRP UnixSockets <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5668578\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : limingxinleo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             php &#8211;ri openssl                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5668579\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : tg11 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @limingxinleo <br \/>&#8220;`<br \/>openssl<\/p>\n<p>OpenSSL support =&gt; enabled<br \/>OpenSSL Library Version =&gt; OpenSSL 1.1.1g 21 Apr 2020<br \/>OpenSSL Header Version =&gt; OpenSSL 1.1.1g 21 Apr 2020<br \/>Openssl default config =&gt; \/Applications\/MxSrvs\/libs\/_openssl\/1.1.1g\/ssl\/openssl.cnf<\/p>\n<p>Directive =&gt; Local Value =&gt; Master Value<br \/>openssl.cafile =&gt; no value =&gt; no value<br \/>openssl.capath =&gt; no value =&gt; no value<br \/>&#8220;`<br \/>\u6267\u884c\u540e\u663e\u793a\u8fd9\u4e2a\u3002\u4f46\u662f composer \u8fd8\u662f\u62a5 Protocol &#8220;https&#8221; not supported or disabled in libcurl                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5668580\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ben1024 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u91cd\u88c5\u4e0b curl \u8bd5\u8bd5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6551\u52a9\uff0c Mac \u7cfb\u7edf\u4e0b compo&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/434909"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=434909"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/434909\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=434909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=434909"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=434909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}