我正在尝试安装 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
最佳答案
如果您是 Windows 用户,请确保在 php.ini 文件中取消注释此行:
extension_dir = "ext"
它确保 PHP 从它自己的 ext 库中获取扩展。
关于php - 安装 Composer OpenSSL 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25240757/