centos6.4无法安装php


CentOS 6.4 cannot install phpize

我试图在CentOS 6.4虚拟盒映像上安装xdebug,并遇到无法找到php的问题。我尝试安装php-devel,但是被yum告知有一个依赖问题。

我能做些什么来克服这个吗?

我应该下载源代码然后安装吗?

pecl install xdebug
downloading xdebug-2.2.2.tgz ...
Starting to download xdebug-2.2.2.tgz (250,184 bytes)
.....................................................done: 250,184 bytes
66 source files, building
running: phpize
sh: phpize: command not found
ERROR: `phpize' failed
[root@localhost ~]# yum install php-devel
Loaded plugins: etckeeper, fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: centos-mirror.jchost.net
 * epel: linux.mirrors.es.net
 * extras: ftpmirror.your.org
 * updates: mirror.flhsi.com
Setting up Install Process
Resolving Dependencies
-->  Running transaction check
---> Package php-devel.x86_64 0:5.3.3-22.el6 will be installed
-->  Processing Dependency: php(x86-64) = 5.3.3-22.el6 for package: php-devel-5.3.3-22.el6.x86_64
Package php-5.3.3-22.el6.x86_64 is obsoleted by mod-php-5.4-apache2-zend-server-5.4.11-6.x86_64 which is already installed
-->  Finished Dependency Resolution
Error: Package: php-devel-5.3.3-22.el6.x86_64 (base)
           Requires: php(x86-64) = 5.3.3-22.el6
           Available: php-5.3.3-22.el6.x86_64 (base)
               php(x86-64) = 5.3.3-22.el6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

似乎您已经安装了mod-php-5.4-apache2-zend-server-5.4.11-6。X86_64是php-5.3.3-22.el6.x86_64的替代品。但php el6——5.3.3 - 22.。php-dev -5.3.3-22.el6要求X86_64。X86_64,因为你没有php-5.3.3-22.el6。X68_64(你有一个不会自动降级的新版本)导致冲突

你可以选择"降级"到php-5.3.3-22.el6。X86_64或找到与mod-php-5.4-apache2-zend-server-5.4.11-6工作的等效php-devel包。