본문으로 바로가기

PHP simplexml_load_string 오류 발생

 

모듈 확인

# php -m | grep dom

# rpm -qa | grep php | grep xml

 

설치

 yum install php-xml 

 

오류발생

 

--> Running transaction check
---> Package php-xml.x86_64 0:5.4.16-46.el7 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-46.el7 for package: php-xml-5.4.16-46.el7.x86_64
--> Finished Dependency Resolution
Error: Package: php-xml-5.4.16-46.el7.x86_64 (base)
           Requires: php-common(x86-64) = 5.4.16-46.el7
           Installed: php-common-5.6.40-11.el7.remi.x86_64 (@remi-php56)
               php-common(x86-64) = 5.6.40-11.el7.remi
           Available: php-common-5.4.16-46.el7.x86_64 (base)
               php-common(x86-64) = 5.4.16-46.el7
           Available: php55w-common-5.5.38-1.w7.x86_64 (webtatic)
               php-common(x86-64) = 5.5.38-1.w7
           Available: php56w-common-5.6.40-1.w7.x86_64 (webtatic)
               php-common(x86-64) = 5.6.40-1.w7

등등등,,,

 

처음 php를 설치할 때 remi 저장소를 사용하여 php 5.6을 선택 했다면.
확장모듈 설치할 때도 항상 remi 저장소를 사용해야 충돌이 나지 않음.

yum --enablerepo=remi-php56 install php-xml