首頁 >後端開發 >php教程 >linux - 使用Webtatic的yum來源安裝完php5.5之後無法再安裝phpize和pecl

linux - 使用Webtatic的yum來源安裝完php5.5之後無法再安裝phpize和pecl

WBOY
WBOY原創
2016-08-29 08:50:521379瀏覽

我使用http://www.blogjava.net/nkjav...這裡的方法安裝的php5.5,但後來想安裝phpize的時候出現以下錯誤,如何解決?這問題困擾了我很久,一直不知道該怎麼弄,現在預設的yum源都是5.3,但是我專案是yii2.0框架開發的,必須用5.4以上的版本,我試過國內163的yum源也是php5.3。謝謝各位大神指導!

<code>[root@centos ~]# yum install php-devel
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile

webtatic: uk.repo.webtatic.com
Setting up Install Process

Resolving Dependencies
--> Running transaction check
---> Package php-devel.x86_64 0:5.3.3-47.el6 will be installed
--> Processing Dependency: php(x86-64) = 5.3.3-47.el6 for package: php-devel-5.3.3-47.el6.x86_64
--> Running transaction check
---> Package php.x86_64 0:5.3.3-47.el6 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-47.el6 for package: php-5.3.3-47.el6.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.3.3-47.el6 for package: php-5.3.3-47.el6.x86_64
--> Running transaction check
---> Package php-cli.x86_64 0:5.3.3-47.el6 will be installed
---> Package php-common.x86_64 0:5.3.3-47.el6 will be installed
--> Processing Conflict: php55w-common-5.5.38-1.w6.x86_64 conflicts php-common < 5.5
--> Finished Dependency Resolution
Error: php55w-common conflicts with php-common-5.3.3-47.el6.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
</code>

我曾經嘗試先用Webtatic來源安裝5.5然後再換回163的來源安裝phpize發現還是報上面的錯誤。 。 。

回覆內容:

我使用http://www.blogjava.net/nkjav...這裡的方法安裝的php5.5,但後來想安裝phpize的時候出現以下錯誤,如何解決?這問題困擾了我很久,一直不知道該怎麼弄,現在預設的yum源都是5.3,但是我專案是yii2.0框架開發的,必須用5.4以上的版本,我試過國內163的yum源也是php5.3。謝謝各位大神指導!

<code>[root@centos ~]# yum install php-devel
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile

webtatic: uk.repo.webtatic.com
Setting up Install Process

Resolving Dependencies
--> Running transaction check
---> Package php-devel.x86_64 0:5.3.3-47.el6 will be installed
--> Processing Dependency: php(x86-64) = 5.3.3-47.el6 for package: php-devel-5.3.3-47.el6.x86_64
--> Running transaction check
---> Package php.x86_64 0:5.3.3-47.el6 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-47.el6 for package: php-5.3.3-47.el6.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.3.3-47.el6 for package: php-5.3.3-47.el6.x86_64
--> Running transaction check
---> Package php-cli.x86_64 0:5.3.3-47.el6 will be installed
---> Package php-common.x86_64 0:5.3.3-47.el6 will be installed
--> Processing Conflict: php55w-common-5.5.38-1.w6.x86_64 conflicts php-common < 5.5
--> Finished Dependency Resolution
Error: php55w-common conflicts with php-common-5.3.3-47.el6.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
</code>

我曾經嘗試先用Webtatic來源安裝5.5然後再換回163的來源安裝phpize發現還是報上面的錯誤。 。 。

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn