composer安裝失敗

來源:互聯網
上載者:User
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:

The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl

一直出現這段錯誤提示,真的不知道怎麼搞,php.ini的openssl已經啟動了,查看phpinfo也能查看到openssl,我用的xampp整合的,php版本為5.6,求教啊,

回複內容:

Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:

The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl

一直出現這段錯誤提示,真的不知道怎麼搞,php.ini的openssl已經啟動了,查看phpinfo也能查看到openssl,我用的xampp整合的,php版本為5.6,求教啊,

在命令列裡面 php -m 看一下。可能你是配置的 web 下面的 php.ini 而不是 cli 下面的 php.ini

composer

需要開啟openssl的php擴充

用七牛做了個鏡像:試看看?

curl -sS https://o1kh8c7bn.qnssl.com/installer | phpmv composer.phar /usr/local/bin/composer
  • 相關文章

    聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.