2017-03-26 30 views
0

solution,我用雷米回購協議yum update php*到5.4版本
卻得到:
` - >成品依賴解析如何在centos 6中更新php 5.3到5.4而沒有錯誤?

Error: Package: php-pecl-jsonc-1.3.10-1.el6.remi.5.4.x86_64 (remi) 
      Requires: php(zend-abi) = 20100525-x86-64 
      Removing: php-common-5.3.3-48.el6_8.x86_64 (@updates) 
       php(zend-abi) = 20090626 
      Updated By: php-common-5.6.30-2.el6.remi.x86_64 (remi-test) 
       php(zend-abi) = 20131226-64 
      Available: php-common-5.3.3-47.el6.x86_64 (base) 
       php(zend-abi) = 20090626 
      Available: php-common-5.4.45-13.el6.remi.x86_64 (remi) 
       php(zend-abi) = 20100525-x86-64 
      Available: php-common-5.6.30-0.1.RC1.el6.remi.x86_64 (remi-test) 
       php(zend-abi) = 20131226-64 
Error: Package: php-mysql-5.4.45-13.el6.remi.x86_64 (remi) 
      Requires: php-pdo(x86-64) = 5.4.45-13.el6.remi 
      Removing: php-pdo-5.3.3-48.el6_8.x86_64 (@updates) 
       php-pdo(x86-64) = 5.3.3-48.el6_8 
      Updated By: php-pdo-5.6.30-2.el6.remi.x86_64 (remi-test) 
       php-pdo(x86-64) = 5.6.30-2.el6.remi 
      Available: php-pdo-5.3.3-47.el6.x86_64 (base) 
       php-pdo(x86-64) = 5.3.3-47.el6 
      Available: php-pdo-5.4.45-13.el6.remi.x86_64 (remi) 
       php-pdo(x86-64) = 5.4.45-13.el6.remi 
      Available: php-pdo-5.6.30-0.1.RC1.el6.remi.x86_64 (remi-test) 
       php-pdo(x86-64) = 5.6.30-0.1.RC1.el6.remi 

You could try using --skip-broken to work around the problem 
You could try running: rpm -Va --nofiles --nodigest 

`

我不知道有什麼問題,謝謝你的幫助!

+0

您百勝回購有不同的PHP版本:像這樣:可用:php-pdo-5.4.45-13.el6.remi.x86_64(remi) php-pdo(x86-64)= 5.4.45-13.el6.remi 可用:php -pdo-5.6.30-0.1.RC1.el6.remi.x86_64(remi-test) php-pdo(x86-64)= 5.6.30-0.1.RC1.el6.remi – GeekHades

回答

0

Error: Package: php-pecl-jsonc-1.3.10-1.el6.remi.5.4.x86_64 (remi)

Updated By: php-common-5.6.30-2.el6.remi.x86_64 (remi-test)

禁用「雷米測試」(例外,如果你想測試不穩定的包,但在這種情況下,你需要至少PHP 5.6中,「雷米 - php56」)

+0

收集,我正在使用mysql5。 7.Disabled remi-test,仍然收到錯誤:軟件包:php-mysql-5.4.45-13.el6.remi.x86_64(remi) 需要:libmysqlclient.so.18(lib mysqlclient_18)(64bit) Available:mysql-libs-5.5.53-1.el6.remi.x86_64(remi) libmysqlclient.so.18(libmysqlclient_18)(64bit) Available:mysql-libs-5.5.54-1 .el6.remi.x86_64(remi) libmysqlclient.so.18(libmysqlclient_18)(64bit) Available:mysql-libs-5.1.73-7.el6.i686(base) 找不到 – jackson883

+0

您必須切換到php -mysqlnd,而不是php-mysql,它不依賴於libmysqlclient,或者使用compat-mysql55(更好的方法是使用「remi-php54」而不是「remi」,並且在所有情況下,測試「) –

+0

另請注意,即使」remi-php54「存儲庫中的軟件包有一些安全後臺,PHP 5.4也是EOL,因此您應該考慮使用任何PHP版本> 5.6。 –