composer 安装时出错 报openssl you should enable it or recompile php with --with-openssl
please review and fix the issues listed below then try again
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
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
9 个回复
codefamily
赞同来自:
codefamily
赞同来自:
qufo
赞同来自:
codefamily
赞同来自:
正确的做法是在php的安装目录比如说C:\wamp\bin\php\php5.3.3\中,找到找个目录下的php.ini文件,然后去掉 extension=php_openssl.dll 这一行开头的注释,之后就可以顺利安装Composer了。
codefamily
赞同来自:
C:\Users\Auser>composer -v
PHP Fatal error: Uncaught exception 'PharException' with message 'phar "C:\Prog
ramData\ComposerSetup\bin\composer.phar" has a broken signature' in C:\ProgramDa
ta\ComposerSetup\bin\composer.phar:23
Stack trace:
0 C:\ProgramData\ComposerSetup\bin\composer.phar(23): Phar::mapPhar('composer.p
har')1 {main}
thrown in C:\ProgramData\ComposerSetup\bin\composer.phar on line 23Fatal error: Uncaught exception 'PharException' with message 'phar "C:\ProgramDa
ta\ComposerSetup\bin\composer.phar" has a broken signature' in C:\ProgramData\Co
mposerSetup\bin\composer.phar:23
Stack trace:
0 C:\ProgramData\ComposerSetup\bin\composer.phar(23): Phar::mapPhar('composer.p
har')1 {main}
thrown in C:\ProgramData\ComposerSetup\bin\composer.phar on line 23qufo
赞同来自:
codefamily
赞同来自:
codefamily
赞同来自:
motecshine - 菜鸟
赞同来自: