CentOS 6.4无法安装phpize
问题描述:
我想在CentOS 6.4虚拟盒子图像上安装xdebug,并遇到无法找到phpize的问题。我试图安装php-devel,但被yum告知,存在依赖性问题。CentOS 6.4无法安装phpize
有什么想法,我可以做些什么来克服?
我应该只下载源代码并进行安装?
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
[[email protected] ~]# 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服务器 - 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一起使用的php-devel软件包的等价物.x86_64或编译你自己的phpize。
我觉得你应该去那个超级用户.com .. – 2013-04-09 20:25:14
请[不要在你的帖子中使用签名或标语](http://stackoverflow.com/faq#signatures)。 – meagar 2013-04-09 20:27:20