2013-04-09 155 views
1

我想在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 
+0

我覺得你應該去那個超級用戶.com .. – 2013-04-09 20:25:14

+0

請[不要在你的帖子中使用簽名或標語](http://stackoverflow.com/faq#signatures)。 – meagar 2013-04-09 20:27:20

回答

1

看來你已經安裝了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。