Dependency issue trying to install php-mbstring on ec2(尝试在 ec2 上安装 php-mbstring 的依赖问题)
问题描述
我正在尝试在我的 Amazon Linux AMI 实例上安装 yii2,它需要 php-mbstring 扩展才能工作.
I am trying to install yii2 on my Amazon Linux AMI instance, it requires the php-mbstring extension to work.
当我尝试运行 sudo yum install php-mbstring 时,它返回了这个错误:
When I tried to run sudo yum install php-mbstring it returned this error:
错误:php56-common 与 php-common-5.3.29-1.8.amzn1.x86_64 冲突
Error: php56-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
2494 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package php-mbstring.x86_64 0:5.3.29-1.8.amzn1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.29-1.8.amzn1 for package: php-mbstring-5.3.29-1.8.amzn1.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.3.29-1.8.amzn1 will be installed
--> Processing Conflict: php56-common-5.6.9-1.112.amzn1.x86_64 conflicts php-common < 5.5.22-1.98
--> Finished Dependency Resolution
Error: php56-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
提前感谢您的时间
推荐答案
您似乎安装了 php 5.6.
您需要为该特定版本的 php 安装 mbstring.
It seems you have php 5.6 installed.
You need to install mbstring for that particular version of php.
运行sudo yum install php56-mbstring
之后重新启动 apache 可能是个好主意(谢谢!@hexicle),
使用 sudo service httpd restart
After that it might be a good idea to restart apache (thanks! @hexicle),
using sudo service httpd restart
这篇关于尝试在 ec2 上安装 php-mbstring 的依赖问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:尝试在 ec2 上安装 php-mbstring 的依赖问题
基础教程推荐
- 如何替换eregi() 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
