window yii2 安装插件 报yiisoft/yii2 2.0.x-dev requires ext-mbstring错

本文介绍了如何解决Yii2框架在安装过程中遇到的缺少PHP扩展(如mbstring和openssl)的问题,并提供了具体的步骤来启用这些扩展。
 Problem 1
        - yiisoft/yii2 2.0.x-dev requires ext-mbstring * -> the requested PHP extens
    ion mbstring is missing from your system.
        - yiisoft/yii2 2.0.9 requires ext-mbstring * -> the requested PHP extension
    mbstring is missing from your system.
        - yiisoft/yii2 2.0.8 requires ext-mbstring * -> the requested PHP extension
    mbstring is missing from your system.
        - yiisoft/yii2 2.0.7 requires ext-mbstring * -> the requested PHP extension
    mbstring is missing from your system.
        - yiisoft/yii2 2.0.6 requires ext-mbstring * -> the requested PHP extension
    mbstring is missing from your system.
        - Installation request for yiisoft/yii2 ~2.0.6 -> satisfiable by yiisoft/yii
    2[2.0.6, 2.0.7, 2.0.8, 2.0.9, 2.0.x-dev].

      To enable extensions, verify that they are enabled in those .ini files:
        - I:\android_developer\httpd2.4\php\php.ini
      You can also run `php --ini` inside terminal to see which files are used by PH
    P in CLI mode.

解决:

        找到php.ini打开extension=php_mbstring.dll



报错:

    Deprecation Notice: The Composer\Package\LinkConstraint\MultiConstraint class is deprecated, use Composer\Semver\Constraint\MultiConstraint instead . in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Package/LinkConstraint/MultiConstraint.php:17

解决:

    composer global require "fxp/composer-asset-plugin:~1.0.0"
    修改成
    composer global require "fxp/composer-asset-plugin:~1.2.1"


报错:

    The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable this error, at your own risk, by setting the 'disable-tls' option to true.

解决: 

    You should go to XAMPP php.ini and remove the semicolum from: extension=php_openssl.dll

参考:

    https://teamtreehouse.com/community/openssl-extension-is-required
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值