我使用yii2基本应用程序。我想要的是我必须使用yii2 basic配置adminlte。所以我使用了这位作曲家。
composer require dmstr/yii2-adminlte-asset "2.*"
在终端中运行此命令时出现以下错误。我不知道它是什么。
Problem 1
- yiisoft/yii2 2.0.10 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- yiisoft/yii2 2.0.10 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- yiisoft/yii2 2.0.10 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- Installation request for yiisoft/yii2 (locked at 2.0.10, required as ~2.0.5) -> satisfiable by yiisoft/yii2[2.0.10].
To enable extensions, verify that they are enabled in those .ini files:
- /etc/php/7.1/cli/php.ini
- /etc/php/7.1/cli/conf.d/10-opcache.ini
- /etc/php/7.1/cli/conf.d/10-pdo.ini
- /etc/php/7.1/cli/conf.d/20-calendar.ini
- /etc/php/7.1/cli/conf.d/20-ctype.ini
- /etc/php/7.1/cli/conf.d/20-exif.ini
- /etc/php/7.1/cli/conf.d/20-fileinfo.ini
- /etc/php/7.1/cli/conf.d/20-ftp.ini
- /etc/php/7.1/cli/conf.d/20-gettext.ini
- /etc/php/7.1/cli/conf.d/20-iconv.ini
- /etc/php/7.1/cli/conf.d/20-json.ini
- /etc/php/7.1/cli/conf.d/20-phar.ini
- /etc/php/7.1/cli/conf.d/20-posix.ini
- /etc/php/7.1/cli/conf.d/20-readline.ini
- /etc/php/7.1/cli/conf.d/20-shmop.ini
- /etc/php/7.1/cli/conf.d/20-sockets.ini
- /etc/php/7.1/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.1/cli/conf.d/20-sysvsem.ini
- /etc/php/7.1/cli/conf.d/20-sysvshm.ini
- /etc/php/7.1/cli/conf.d/20-tokenizer.ini
您也可以在终端内运行php --ini
以查看PHP在CLI模式下使用的文件。
Installation failed, reverting ./composer.json to its original content.
我应该安装什么。我使用linux(ubuntu)和php版本是5.6。任何人都可以帮忙解决这个问题吗?
答案 0 :(得分:-1)
使用以下命令将CLI PHP版本切换为7.1 => 5.6
更新替代品-设置php /usr/bin/php5.6