PHP-Anwendung benötigt mbstring-Bibliothek – kann nicht auf EC2 installiert werden

PHP-Anwendung benötigt mbstring-Bibliothek – kann nicht auf EC2 installiert werden

Eine Bibliothek auf meiner E-Commerce-Site erfordert die PHP-Bibliothek mbstring. Scheint einfach zu sein, führen Sie einfach aus:

yum install php-mbstring

aber ich bekomme:

[ec2-user@ip-172-0-0-0 modules]$ sudo yum install php-mbstring
Loaded plugins: priorities, update-motd, upgrade-helper
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.8-1.111.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

Ich habe versucht, die Erweiterung zu aktivieren, aber ich erhalte eine Fehlermeldung:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/5.6/modules/mbstring.so'^

Ich habe keine Ahnung, was ich als nächstes versuchen soll ...

Antwort1

Auf Ihrem System ist PHP 5.6 installiert, Sie versuchen jedoch, PHP 5.3 yumzu installieren .mbstring

Sie müssen die mbstringErweiterung auf die gleiche Weise installieren, wie Sie PHP 5.6 installiert haben.

verwandte Informationen