我正在运行CentOS 6.4,因此本身坚持使用PHP 5.3但我需要5.5所以我已经使用本指南升级到5.5,http://www.webtatic.com/packages/php55/
我在安装之前删除了所有旧包,现在我已经重新安装了除“rrdtool-php”软件包以外的所有软件包,这是唯一一个给我带来一些问题的软件包。
当我运行它时,我收到此错误:
[root@srv install]# yum install rrdtool-php
Loaded plugins: fastestmirror, replace, security
Loading mirror speeds from cached hostfile
* base: centos.skarta.net
* extras: centos.skarta.net
* updates: mirror.easyspeedy.com
* webtatic: uk.repo.webtatic.com
Trying other mirror.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package rrdtool-php.i686 0:1.3.8-6.el6 will be installed
--> Processing Dependency: php(zend-abi) = 20090626 for package: rrdtool-php-1.3.8-6.el6.i686
--> Processing Dependency: php(api) = 20090626 for package: rrdtool-php-1.3.8-6.el6.i686
--> Running transaction check
---> Package php-common.i686 0:5.3.3-22.el6 will be installed
--> Processing Conflict: php55w-common-5.5.0-1.w6.i386 conflicts php-common < 5.5.0
--> Finished Dependency Resolution
Error: php55w-common conflicts with php-common-5.3.3-22.el6.i686
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我已经安装了“php55w-common”,所以我自然也无法安装“php-common”软件包。我不敢尝试“ - 破损”选项,因为我不希望最终破坏一切。
有谁可以帮我澄清如何解决这个问题?
答案 0 :(得分:2)
可以创建一个在PHP 5.5中支持这个php扩展的包,但这不是我打算为Webtatic做的事情,而不是常见的请求。
如果你发现它适合自己,你可以使用pecl安装程序来扩展php:
yum install rrdtool-devel php55w-pear php55w-devel
pecl install rrd
echo "extension=rrd.so" > /etc/php.d/rrd.ini