【问题标题】:The requested PHP extension ext-soap * is missing from your system when updating composer in Yii2在 Yii2 中更新作曲家时,系统中缺少请求的 PHP 扩展 ext-soap *
【发布时间】:2019-01-25 18:00:31
【问题描述】:
Problem 1
    - The requested PHP extension ext-soap * is missing from your system. Install or enable PHP's soap extension.
  Problem 2
    - Installation request for googleads/googleads-php-lib ^27.1 -> satisfiable by googleads/googleads-php-lib[27.1.0].
    - googleads/googleads-php-lib 27.1.0 requires ext-soap * -> the requested PHP extension soap is missing from your system.

  To enable extensions, verify that they are enabled in your .ini files:
    - C:\xampp\php\php.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

注意:我在 php.ini 中启用了 soap 扩展

【问题讨论】:

  • 你确定你更新的是正确的ini文件
  • 是的,我已经在 xamp/php/php.ini 中更新了(开发和产品两者)
  • 如果你使用的是 Linux,php -m | grep soap 的输出是什么
  • 请显示您的php.ini 文件的内容以及php --iniphp -mphp -i 的输出。
  • 试试this 回答。希望,它会有所帮助。

标签: php laravel yii2 composer-php


【解决方案1】:

这个命令应该修复它sudo apt-get install php7.0-curl。 注意:将 PHP 版本更改为您使用的版本。

【讨论】:

  • 为什么安装 curl 扩展可以解决有关 soap 扩展的错误?
猜你喜欢
  • 2016-10-18
  • 2016-06-20
  • 2019-05-17
  • 2014-04-15
  • 1970-01-01
  • 1970-01-01
  • 2019-07-07
  • 2019-12-13
  • 2020-01-09
相关资源
最近更新 更多