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

Twitter ツイート Hatena Bookmark ブックマーク

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[[email protected] ~]# rpm -ivh http://www.zabbix.jp/binaries/relatedpkgs/rhel5/i386/zabbix-jp-release-5-5.noarch.rpm
[[email protected] ~]# 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にしてたんで、エラーになって終わりますよねって話です。

1
[[email protected] ~]# yum install --enablerepo=remi zabbix zabbix-web zabbix-agent

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

comments powered by Disqus
Built with Hugo
テーマ StackJimmy によって設計されています。