簡體   English   中英

嘗試在ec2上安裝php-mbstring的依賴性問題

[英]Dependency issue trying to install php-mbstring on ec2

我正在嘗試在Amazon Linux AMI實例上安裝yii2 ,它需要php-mbstring擴展名才能工作。

當我嘗試運行sudo yum install php-mbstring它返回以下錯誤:

錯誤:php56-common與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

運行sudo yum install php56-mbstring

之后,最好重新啟動apache(謝謝! @hexicle ),
使用sudo service httpd restart

Amazon Linux AMI版本2017.09

sudo yum install php70-mysqlnd
sudo service httpd restart

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM