不能在centos上安装php-devel

前端之家收集整理的这篇文章主要介绍了不能在centos上安装php-devel前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我需要帮助安装PHP-devel(我需要它,因为它有PHPize,这是必要的安装eAccelerator).但是当我尝试使用yum安装PHP-devel安装PHP-devel时,会给我以下错误
# 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 …

而不是运行yum install PHP-devel你需要运行yum –enablerepo = remi,remi-PHP54 install PHP-devel.

简而言之,只需从remi repo中指定您想要的PHP-devel版本.在你的情况下,你从remi安装了PHP54,所以你需要添加“remi-PHP54”.这样可以在没有停机的情况下成功安装PHP-devel.

原文链接:https://www.f2er.com/centos/374085.html

猜你在找的CentOS相关文章