polidog lab++

Blog
CentOS5.9にzabbixをいれる(remi使ってPHP入れてた場合)

CentOS5.9にzabbixをいれる(remi使ってPHP入れてた場合)

Feb 20, 2013 | tech | centos zabbix

ちょっと試したい事があったのでzabbixを入れようと思ったんで、インストールしてみました。

[root@polidog.local ~]# rpm -ivh http://www.zabbix.jp/binaries/relatedpkgs/rhel5/i386/zabbix-jp-release-5-5.noarch.rpm
[root@polidog.local ~]# yum install zabbix zabbix-web zabbix-agent
Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
 * base: ftp.nara.wide.ad.jp
 * epel: ftp.kddilabs.jp
 * extras: ftp.nara.wide.ad.jp
 * ius: mirror.sothatswhy.org.uk
 * updates: ftp.nara.wide.ad.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package zabbix.x86_64 0:1.8.15-1.el5.JP set to be updated
---> Package zabbix-agent.x86_64 0:1.8.15-1.el5.JP set to be updated
---> Package zabbix-web.x86_64 0:1.8.15-1.el5.JP set to be updated
--> Processing Dependency: zabbix-web-database = 1.8.15-1.el5.JP for package: zabbix-web
--> Processing Dependency: php-bcmath for package: zabbix-web
--> Running transaction check
---> Package php-bcmath.x86_64 0:5.1.6-39.el5_8 set to be updated
--> Processing Dependency: php-common = 5.1.6-39.el5_8 for package: php-bcmath
---> Package zabbix-web-pgsql.x86_64 0:1.8.15-1.el5.JP set to be updated
--> Processing Dependency: php-pgsql for package: zabbix-web-pgsql  
--> Running transaction check
---> Package php-bcmath.x86_64 0:5.1.6-39.el5_8 set to be updated
--> Processing Dependency: php-common = 5.1.6-39.el5_8 for package: php-bcmath
---> Package php-pgsql.x86_64 0:5.1.6-39.el5_8 set to be updated
--> Processing Dependency: php-common = 5.1.6-39.el5_8 for package: php-pgsql
--> Finished Dependency Resolution
php-bcmath-5.1.6-39.el5_8.x86_64 from base has depsolving problems
  --> Missing Dependency: php-common = 5.1.6-39.el5_8 is needed by package php-bcmath-5.1.6-39.el5_8.x86_64 (base)
php-pgsql-5.1.6-39.el5_8.x86_64 from base has depsolving problems
  --> Missing Dependency: php-common = 5.1.6-39.el5_8 is needed by package php-pgsql-5.1.6-39.el5_8.x86_64 (base)
Error: Missing Dependency: php-common = 5.1.6-39.el5_8 is needed by package php-bcmath-5.1.6-39.el5_8.x86_64 (base)
Error: Missing Dependency: php-common = 5.1.6-39.el5_8 is needed by package php-pgsql-5.1.6-39.el5_8.x86_64 (base)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

なんかphpの依存関係で失敗してエラーになりました。。。

よく考えてみればphpはremiで入れたし、そもそもremiはenable=0にしてたんで、エラーになって終わりますよねって話です。

[root@polidog.local ~]# yum install --enablerepo=remi zabbix zabbix-web zabbix-agent

これで無事インストールできました。めでたしめでたし。

comments powered by Disqus

関連記事

© 2017 polidog lab++