从php 5.3升级到5.5后,无法安装rrdtool php
我运行的是CentOS 6.4,因此本机使用的是PHP5.3,但我需要5.5,因此我在这里使用本指南升级到了5.5 在安装之前,我已经删除了所有旧的软件包,现在我已经重新安装了所有的软件包,除了“rrdtool php”软件包,它是唯一一个给我带来一些问题的软件包 当我运行它时,会出现以下错误:从php 5.3升级到5.5后,无法安装rrdtool php,php,centos6,rrdtool,Php,Centos6,Rrdtool,我运行的是CentOS 6.4,因此本机使用的是PHP5.3,但我需要5.5,因此我在这里使用本指南升级到了5.5 在安装之前,我已经删除了所有旧的软件包,现在我已经重新安装了所有的软件包,除了“rrdtool php”软件包,它是唯一一个给我带来一些问题的软件包 当我运行它时,会出现以下错误: [root@srv install]# yum install rrdtool-php Loaded plugins: fastestmirror, replace, sec
[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
[root@srv安装]#yum安装rrdtool php
加载的插件:FastTestMirror、replace、security
从缓存的主机文件加载镜像速度
*基地:centos.skarta.net
*附加:centos.skarta.net
*更新:mirror.easyspeedy.com
*WebStatic:uk.repo.webstatic.com
尝试另一面镜子。
设置安装过程
解决依赖关系
-->运行事务检查
--->将安装包rrdtool-php.i686 0:1.3.8-6.el6
-->包:rrdtool-php-1.3.8-6.el6.i686的处理依赖项:php(zend-abi)=20090626
-->包:rrdtool-php-1.3.8-6.el6.i686的处理依赖项:php(api)=20090626
-->运行事务检查
--->将安装程序包php-common.i686 0:5.3.3-22.el6
-->处理冲突:php55w-common-5.5.0-1.w6.i386冲突php-common<5.5.0
-->已完成依赖项解析
错误:php55w与php-common-5.3.3-22.el6.i686常见冲突
您可以尝试使用--skip break来解决这个问题
您可以尝试运行:rpm-Va--nofiles--nodigest
我已经安装了“php55w common”,所以我当然不能再安装“php common”包了。我不敢尝试“-skip breake”选项,因为我不想让所有东西都崩溃
有人能帮我澄清一下如何解决这个问题吗?CentOS/RHEL 6中的rrdtool php是根据PHP5.3扩展api构建的,因此不能在以后的php版本(5.4或5.5)中使用 可以在PHP5.5中创建一个支持此php扩展的包,但我不打算为WebStatic做这件事,因为这不是一个常见的请求 如果您觉得它适合您自己,您可以使用pecl安装程序进行php扩展:
yum install rrdtool-devel php55w-pear php55w-devel
pecl install rrd
echo "extension=rrd.so" > /etc/php.d/rrd.ini
这对我有用,谢谢!:-)实际上,我现在得到了这个错误
警告:rrd_graph()正好需要2个参数,第277行的/home/web/power.php中给出了3个参数。我有3个选项,$ret=rrd_graph(“mygraph.rrd”),$opts,count($opts))代码>我可以在文档中看到,这只有两个选项,所以我实际上不确定我以前使用了什么。但这是可以解决的,您的解决方案为我提供了在PHP中使用RRDTool的可能性。