无法在centos上安装php-devel

时间:2023-02-12
本文介绍了无法在centos上安装php-devel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我需要安装 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

上一篇:PHP 警告:PHP 启动:????????:无法初始化模块 下一篇:如何将sharepoint与php连接

相关文章

最新文章