cnblogs/dcrenl/windows下安装Composer提示缺少openssl的解决方法.html
2024-09-24 12:43:01 +08:00

2 lines
593 B
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>在Windows环境下安装Composer(注Composer要求PHP版本在5.3.2+),你可能会遇到这种安装失败的情况:出错信息是&nbsp;"The openssl extension is missing, which will reduce the security and stability of Composer. If possible you should enable it or recompile php with --with-openssl"&nbsp;大意就是你的PHP缺少openssl扩展。</p>
<p>在php的安装目录比如说C:\wamp\bin\php\php5.3.3\中找到找个目录下的php.ini文件然后去掉&nbsp;extension=php_openssl.dll&nbsp;这一行开头的注释之后就可以顺利安装Composer了。</p>