0

我正在尝试在 CentOS 6.4 虚拟盒映像上安装 xdebug,但遇到了找不到 phpize 的问题。我尝试安装 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
4

1 回答 1

1

似乎您已经安装了 mod-php-5.4-apache2-zend-server-5.4.11-6.x86_64,它是 php-5.3.3-22.el6.x86_64 的替代品。但是 php-5.3.3-22.el6.x86_64 是 php-devel-5.3.3-22.el6.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.x86_64 一起使用的 php-devel 包的等效项或编译你自己的phpize。

于 2013-04-09T20:29:37.360 回答