問題描述
我需要安裝 php-devel 的幫助(我需要它,因為它有 phpize,這是安裝 eAccelerator 所必需的).但是當我嘗試使用 yum install php-devel
安裝 php-devel 時,它給了我以下錯誤:
I need help with installation of php-devel (I need it, cause it has phpize, which is necessary to install eAccelerator). But when I try to install php-devel with yum install php-devel
it gives me the following errors:
# yum install php-devel
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: centos.itt-consulting.com
* epel: mirror.yandex.ru
* extras: centos.itt-consulting.com
* passenger: mirror.hmdc.harvard.edu
* updates: centos.itt-consulting.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-devel.x86_64 0:5.3.3-14.el6_3 will be installed
--> Processing Dependency: php = 5.3.3-14.el6_3 for package: php-devel-5.3.3-14.el6_3.x86_64
--> Finished Dependency Resolution
Error: Package: php-devel-5.3.3-14.el6_3.x86_64 (updates)
Requires: php = 5.3.3-14.el6_3
Installed: php-5.4.6-1.el6.remi.x86_64 (@remi-test)
php = 5.4.6-1.el6.remi
Available: php-5.3.3-3.el6_2.8.x86_64 (base)
php = 5.3.3-3.el6_2.8
Available: php-5.3.3-14.el6_3.x86_64 (updates)
php = 5.3.3-14.el6_3
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我不知道如何處理這些錯誤.我已經安裝了 php 5.3.3(phpinfo() 說的),所以不明白為什么在這個列表中我可以看到 Installed: php-5.4...
I have no idea what to do with these errors. And I have php 5.3.3 installed (phpinfo() says that), so don't understand why in this list I can see Installed: php-5.4...
推薦答案
而不是運行 yum install php-devel
你需要運行 yum --enablerepo=remi,remi-php54 installphp-devel
.
Rather than running yum install php-devel
you needed to run yum --enablerepo=remi,remi-php54 install php-devel
.
簡而言之,只需指定您想要從 remi 存儲庫中獲取的 php-devel 版本.在您的情況下,您從 remi 安裝了 php54,因此您需要添加 "remi-php54" .這樣就可以在不停機的情況下成功安裝 php-devel.
In short, just specifying which php-devel version you wanted from the remi repo. In your case you had php54 installed from remi so you needed to add in "remi-php54" . That would have successfully installed php-devel without the downtime.
這篇關于無法在centos上安裝php-devel的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!