2016-04-27 93 views
0

我喜欢安装php-devel下面麻烦安装PHP-devel的的CentOS 6

yum install php-devel 

和错误,如下面

Package: 1:php56w-pear-1.10.1-1.w6.noarch (@webtatic) 
      Requires: php56w-ftp 
      Removing: php56w-common-5.6.20-1.w6.x86_64 (@webtatic) 
       php56w-ftp 
      Obsoleted By: php-common-5.6.20-1.el6.remi.x86_64 (remi-php56) 
       Not found 
      Available: php56w-common-5.6.19-1.w6.x86_64 (webtatic) 
       php56w-ftp 
Error: Package: 1:php56w-pear-1.10.1-1.w6.noarch (@webtatic) 
      Requires: php56w-xml 
      Removing: php56w-xml-5.6.20-1.w6.x86_64 (@webtatic) 
       php56w-xml = 5.6.20-1.w6 
      Obsoleted By: php-xml-5.6.20-1.el6.remi.x86_64 (remi-php56) 
       Not found 
      Available: php56w-xml-5.6.19-1.w6.x86_64 (webtatic) 
       php56w-xml = 5.6.19-1.w6 
Error: Package: 1:php56w-pear-1.10.1-1.w6.noarch (@webtatic) 
      Requires: php56w-bz2 
      Removing: php56w-common-5.6.20-1.w6.x86_64 (@webtatic) 
       php56w-bz2 
      Obsoleted By: php-common-5.6.20-1.el6.remi.x86_64 (remi-php56) 
       Not found 
      Available: php56w-common-5.6.19-1.w6.x86_64 (webtatic) 
       php56w-bz2 
Error: Package: 1:php56w-pear-1.10.1-1.w6.noarch (@webtatic) 
      Requires: php56w-cli 
      Removing: php56w-cli-5.6.20-1.w6.x86_64 (@webtatic) 
       php56w-cli = 5.6.20-1.w6 
      Obsoleted By: php-cli-5.6.20-1.el6.remi.x86_64 (remi-php56) 
       Not found 
      Available: php56w-cli-5.6.19-1.w6.x86_64 (webtatic) 
       php56w-cli = 5.6.19-1.w6 
Error: Package: 1:php56w-pear-1.10.1-1.w6.noarch (@webtatic) 
      Requires: php56w-pcre 
      Removing: php56w-common-5.6.20-1.w6.x86_64 (@webtatic) 
       php56w-pcre 
      Obsoleted By: php-common-5.6.20-1.el6.remi.x86_64 (remi-php56) 
       Not found 
      Available: php56w-common-5.6.19-1.w6.x86_64 (webtatic) 
       php56w-pcre 
Error: Package: 1:php56w-pear-1.10.1-1.w6.noarch (@webtatic) 
      Requires: php56w-posix 
      Removing: php56w-process-5.6.20-1.w6.x86_64 (@webtatic) 
       php56w-posix 
      Obsoleted By: php-process-5.6.20-1.el6.remi.x86_64 (remi-php56) 
       Not found 
      Available: php56w-process-5.6.19-1.w6.x86_64 (webtatic) 
       php56w-posix 
Error: Package: 1:php56w-pear-1.10.1-1.w6.noarch (@webtatic) 
      Requires: php56w-tokenizer 
      Removing: php56w-common-5.6.20-1.w6.x86_64 (@webtatic) 
       php56w-tokenizer 
      Obsoleted By: php-common-5.6.20-1.el6.remi.x86_64 (remi-php56) 
       Not found 
      Available: php56w-common-5.6.19-1.w6.x86_64 (webtatic) 
       php56w-tokenizer 
Error: Package: 1:php56w-pear-1.10.1-1.w6.noarch (@webtatic) 
      Requires: php56w-zlib 
      Removing: php56w-common-5.6.20-1.w6.x86_64 (@webtatic) 
       php56w-zlib 
      Obsoleted By: php-common-5.6.20-1.el6.remi.x86_64 (remi-php56) 
       Not found 
      Available: php56w-common-5.6.19-1.w6.x86_64 (webtatic) 
       php56w-zlib 
You could try using --skip-broken to work around the problem 
You could try running: rpm -Va --nofiles --nodigest 

请帮我

回答

0

尝试安装EPEL 6第一,

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm 
yum install epel-release-latest-6.noarch.rpm 
rm -rf epel-release-latest-6.noarch.rpm 

完成后,请尝试运行,

yum install php 
+0

同样的错误@LFlare – user2340312

+0

编辑我的评论@ user2340312 – 2016-04-27 06:41:48

+0

tq回复但没有工作 – user2340312

0

您已经同时安装并启用了webtatic和remi存储库。 为了解决安装php *包的这个问题,启用一个并禁用其他的。例如运行yum install --disablerepo=webtatic php-devel或转到/etc/yum.repos.d并通过编辑.repo文件禁用存储库。