PHP 애플리케이션에는 mbstring 라이브러리가 필요합니다. EC2에 설치할 수 없습니다.

PHP 애플리케이션에는 mbstring 라이브러리가 필요합니다. EC2에 설치할 수 없습니다.

내 전자상거래 사이트의 라이브러리에는 PHP mbstring 라이브러리가 필요합니다. 간단해 보입니다. 다음을 실행하세요.

yum install php-mbstring

하지만 나는 다음을 얻습니다:

[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

확장 프로그램을 활성화하려고 했지만 오류가 발생했습니다.

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

다음에 무엇을 시도해야할지 모르겠습니다 ...

답변1

시스템에 PHP 5.6이 설치되어 있는데 PHP 5.3용으로 yum설치하려고 합니다 .mbstring

mbstringPHP 5.6을 설치한 것과 동일한 방식으로 확장을 설치해야 합니다 .

관련 정보