我正在尝试在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
答案 0 :(得分: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。 / p>