簡體   English   中英

從PHP 5.3升級到5.5后無法安裝rrdtool-php

[英]Cannot install rrdtool-php after upgrading from PHP 5.3 to 5.5

我正在運行CentOS 6.4,因此在本機上仍停留在PHP 5.3上,但我需要5.5,因此我已通過此指南http://www.webtatic.com/packages/php55/升級到5.5

在安裝之前,我已經刪除了所有舊軟件包,現在我重新安裝了所有軟件包,但“ 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”軟件包。 我不敢嘗試“ --skip-broken”選項,因為我不想最終遇到任何麻煩。

誰能幫助我闡明如何解決此問題?

CentOS / RHEL 6中的rrdtool-php是針對php 5.3擴展api構建的,因此不能在以后的PHP版本(5.4或5.5)中使用。

可以創建一個軟件包來支持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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM