嗨伙计们我想安装composer
但是当我去安装它时我得到这个错误:
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 5.4.31
,我正在运行WAMP2.2
我已经检查了我的php.ini
文件,bin/php/php5.4.31/
并确保取消注释以下行:
extension=php_openssl.dll
错误仍然解决,我不知道如何解决它.正如我想的那样,通过取消注释它将被启用.
此外,当我在终端窗口中运行此命令时,php --ini
我收到以下消息:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\php_openssl.dll' - The specified module could not be found
@Javacadabra,像php_openssl.dll这样的扩展将在php/ext /目录下,您可以在配置文件中修复此路径,或者您可以将该特定文件从php/ext目录复制到php目录.
在你的情况下,它将是c:\ php\ext
请务必取消推荐此行:
extension_dir = "ext"
它确保php从其自己的ext库中获取扩展名