Unable to find the wrapper “https”

PHP 開発ツール

エラーが出てcomposerがインストール出来ない(´Д⊂グスン
ログはこんな感じ
~~~
php -r “readfile(‘https://getcomposer.org/installer’);” | php
PHP Warning: readfile(): Unable to find the wrapper “https” – did you forget to enable it when you configured PHP? in Command line code on line 1
PHP Warning: readfile(https://getcomposer.org/installer): failed to open stream: Invalid argument in Command line code on line 1
php composer.phar install
Could not open input file: composer.phar
Command exited with code 1
~~~

Windows環境だからダメなのかと思いましたが、php_opensslを有効にしたら進んだよ(´Д⊂グスン
ちゃんとログを見ろって話ですね
~~~
echo extension=php_openssl.dll >> php.ini
~~~

~~~
php -r “readfile(‘https://getcomposer.org/installer’);” | php
#!/usr/bin/env php
All settings correct for using Composer
Downloading…

Composer successfully installed to: C:\projects\ec-cube\composer.phar
Use it: php composer.phar
php composer.phar install
Loading composer repositories with package information
~~~

自動化するまでがツライよ(´д`)ママン…

コメント

タイトルとURLをコピーしました