Redhat 7 64비트에 Zabbix를 설치하려고 합니다. zabbix server 명령을 통해 성공적으로 설치되었습니다.yum install zabbix-server-mysql
그런데 zabbix 웹 콘솔을 설치하려고 할 때 php70u와 php56u 사이에 충돌이 발생했습니다. 다음 명령을 실행합니다.yum install zabbix-web-mysql
다음은 명령의 출력입니다.
Resolving Dependencies
--> Running transaction check
---> Package zabbix-web-mysql.noarch 0:3.0.2-1.el7 will be installed
--> Processing Dependency: zabbix-web = 3.0.2-1.el7 for package: zabbix-web-mysql-3.0.2-1.el7.noarch
--> Processing Dependency: php-mysql for package: zabbix-web-mysql-3.0.2-1.el7.noarch
--> Running transaction check
---> Package php56u-mysqlnd.x86_64 0:5.6.21-1.ius.el7 will be installed
--> Processing Dependency: php56u-pdo(x86-64) = 5.6.21-1.ius.el7 for package: php56u-mysqlnd-5.6.21-1.ius.el7.x86_64
---> Package zabbix-web.noarch 0:3.0.2-1.el7 will be installed
--> Processing Dependency: php >= 5.4 for package: zabbix-web-3.0.2-1.el7.noarch
--> Processing Dependency: php-gd for package: zabbix-web-3.0.2-1.el7.noarch
--> Processing Dependency: php-mbstring for package: zabbix-web-3.0.2-1.el7.noarch
--> Processing Dependency: dejavu-sans-fonts for package: zabbix-web-3.0.2-1.el7.noarch
--> Processing Dependency: php-bcmath for package: zabbix-web-3.0.2-1.el7.noarch
--> Processing Dependency: php-ldap for package: zabbix-web-3.0.2-1.el7.noarch
--> Processing Dependency: php-xml for package: zabbix-web-3.0.2-1.el7.noarch
--> Running transaction check
---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
---> Package mod_php70u.x86_64 0:7.0.6-1.ius.el7 will be installed
--> Processing Dependency: php-common(x86-64) = 7.0.6-1.ius.el7 for package: mod_php70u-7.0.6-1.ius.el7.x86_64
---> Package php56u-pdo.x86_64 0:5.6.21-1.ius.el7 will be installed
--> Processing Dependency: php56u-common(x86-64) = 5.6.21-1.ius.el7 for package: php56u-pdo-5.6.21-1.ius.el7.x86_64
---> Package php70u-bcmath.x86_64 0:7.0.6-1.ius.el7 will be installed
---> Package php70u-gd.x86_64 0:7.0.6-1.ius.el7 will be installed
--> Processing Dependency: libwebp.so.4()(64bit) for package: php70u-gd-7.0.6-1.ius.el7.x86_64
--> Processing Dependency: libXpm.so.4()(64bit) for package: php70u-gd-7.0.6-1.ius.el7.x86_64
---> Package php70u-ldap.x86_64 0:7.0.6-1.ius.el7 will be installed
---> Package php70u-mbstring.x86_64 0:7.0.6-1.ius.el7 will be installed
---> Package php70u-xml.x86_64 0:7.0.6-1.ius.el7 will be installed
--> Running transaction check
---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
---> Package libXpm.x86_64 0:3.5.11-3.el7 will be installed
---> Package libwebp.x86_64 0:0.3.0-3.el7 will be installed
---> Package php56u-common.x86_64 0:5.6.21-1.ius.el7 will be installed
--> Processing Dependency: php56u-pecl-jsonc(x86-64) for package: php56u-common-5.6.21-1.ius.el7.x86_64
---> Package php70u-common.x86_64 0:7.0.6-1.ius.el7 will be installed
--> Running transaction check
---> Package php56u-pecl-jsonc.x86_64 0:1.3.9-2.ius.el7 will be installed
--> Processing Dependency: php56u-pear for package: php56u-pecl-jsonc-1.3.9-2.ius.el7.x86_64
--> Processing Dependency: php56u-pear for package: php56u-pecl-jsonc-1.3.9-2.ius.el7.x86_64
--> Running transaction check
---> Package php56u-pear.noarch 1:1.10.1-4.ius.el7 will be installed
--> Processing Dependency: php56u-xml for package: 1:php56u-pear-1.10.1-4.ius.el7.noarch
--> Processing Dependency: php56u-posix for package: 1:php56u-pear-1.10.1-4.ius.el7.noarch
--> Processing Dependency: php56u-cli for package: 1:php56u-pear-1.10.1-4.ius.el7.noarch
--> Running transaction check
---> Package php56u-cli.x86_64 0:5.6.21-1.ius.el7 will be installed
---> Package php56u-process.x86_64 0:5.6.21-1.ius.el7 will be installed
---> Package php56u-xml.x86_64 0:5.6.21-1.ius.el7 will be installed
--> Processing Conflict: php70u-xml-7.0.6-1.ius.el7.x86_64 conflicts php-xml < 7.0
--> Processing Conflict: php70u-common-7.0.6-1.ius.el7.x86_64 conflicts php56u-common
--> Processing Conflict: php70u-common-7.0.6-1.ius.el7.x86_64 conflicts php-common < 7.0
--> Finished Dependency Resolution
Error: php70u-xml conflicts with php56u-xml-5.6.21-1.ius.el7.x86_64
Error: php70u-common conflicts with php56u-common-5.6.21-1.ius.el7.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
내 재처리는 다음과 같습니다.
base-local CELGAE Infra Management REPO - RedHat EL7 DVD 4,620
*epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 10,050
ius/x86_64 IUS Community Packages for Enterprise Linux 7 - x86_64 302
ius-debuginfo/x86_64 IUS Community Packages for Enterprise Linux 7 - x86_64 - Debug 55
ius-source IUS Community Packages for Enterprise Linux 7 - x86_64 - Source 0
optional-local CELGAE Infra Management REPO - RedHat EL7 OPTIONAL 8,602
updates-local CELGAE Infra Management REPO - RedHat EL7 UPDATES 10,706
zabbix/x86_64 Zabbix Official Repository - x86_64 40
zabbix-non-supported/x86_64 Zabbix Official Repository non-supported - x86_64 4
나는 문서를 따랐다.https://www.zabbix.com/documentation/3.0/manual/installation/install_from_packages
저장소를 비활성화했지만 도움이 되지 않았습니다.
답변1
마침내 몇 시간의 검색 끝에 누구의 피드백도 없이 마침내 문제를 해결했습니다. 나중에 같은 문제에 직면한 다른 사람들에게 도움이 될 수 있도록 여기에서 공유하고 있습니다.
먼저 yum을 설치해야 합니다.
yum install yum-plugin-replace
교체 후 php-common
PHP 버전과 충돌합니다. 내가 아는 한 그렇습니다 php70u-common
. 그래서 다음 명령을 실행했습니다.
yum replace php-common --replace-with php70u-common
또는 PHP 전용인 경우 다음과 같이 할 수도 있습니다.
yum replace php --replace-with php70u
그 후에 원하는 패키지를 설치할 수 있습니다. 제 경우에는 Zabbix입니다.