← Back to team overview

ius-community team mailing list archive

Error resolving deps for php-pear

 

BJ,

I finally got around to installing the php52-pecl-apc package that you
pushed out recently.  I came across the following conflict when
attempting to do a yum install:

[root@juicy klord]# yum install php52-pecl-apc
Loaded plugins: fastestmirror, kmod
Loading mirror speeds from cached hostfile
 * epel: mirrors.tummy.com
 * ius: dl.iuscommunity.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php52-pecl-apc.x86_64 0:3.0.19-3.ius.el5 set to be updated
--> Processing Dependency: /usr/bin/pecl for package: php52-pecl-apc
--> Running transaction check
---> Package php-pear.noarch 1:1.4.9-6.el5 set to be updated
--> Processing Dependency: php-devel for package: php-pear
--> Running transaction check
---> Package php-devel.x86_64 0:5.1.6-23.2.el5_3 set to be updated
--> Processing Dependency: php = 5.1.6-23.2.el5_3 for package: php-devel
--> Processing Dependency: autoconf for package: php-devel
--> Processing Dependency: automake for package: php-devel
--> Running transaction check
---> Package autoconf.noarch 0:2.59-12 set to be updated
--> Processing Dependency: imake for package: autoconf
--> Processing Dependency: m4 for package: autoconf
---> Package automake.noarch 0:1.9.6-2.1 set to be updated
---> Package php.x86_64 0:5.1.6-23.2.el5_3 set to be updated
--> Processing Dependency: php-cli = 5.1.6-23.2.el5_3 for package: php
--> Processing Dependency: php-common = 5.1.6-23.2.el5_3 for package: php
--> Running transaction check
---> Package imake.x86_64 0:1.0.2-3 set to be updated
---> Package m4.x86_64 0:1.4.5-3.el5.1 set to be updated
---> Package php-cli.x86_64 0:5.1.6-23.2.el5_3 set to be updated
---> Package php-common.x86_64 0:5.1.6-23.2.el5_3 set to be updated
--> Processing Conflict: php52 conflicts php < 5.2
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
--> Processing Dependency: php52 = 5.2.11-2.ius.el5 for package: php52-common
---> Package php52.x86_64 0:5.2.11-3.ius.el5 set to be updated
--> Processing Dependency: php52-cli = 5.2.11-3.ius.el5 for package: php52
--> Running transaction check
---> Package php52-cli.x86_64 0:5.2.11-3.ius.el5 set to be updated
--> Processing Dependency: php-common = 5.2.11-2.ius.el5 for package:
php52-mysql
--> Processing Dependency: php52-common = 5.2.11-2.ius.el5 for
package: php52-pdo
---> Package php52-common.x86_64 0:5.2.11-3.ius.el5 set to be updated
--> Running transaction check
---> Package php52-mysql.x86_64 0:5.2.11-3.ius.el5 set to be updated
---> Package php52-pdo.x86_64 0:5.2.11-3.ius.el5 set to be updated
--> Processing Conflict: php52 conflicts php < 5.2
--> Processing Conflict: php52-common conflicts php-common < 5.2
--> Finished Dependency Resolution
php52-common-5.2.11-3.ius.el5.x86_64 from ius has depsolving problems
  --> php52-common conflicts with php-common
php52-5.2.11-3.ius.el5.x86_64 from ius has depsolving problems
  --> php52 conflicts with php
Error: php52-common conflicts with php-common
Error: php52 conflicts with php
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest

It looks like php52-pecl-apc depended on the stock php-pear package,
which in turn depended on the stock php-devel package that led to the
conflict with the installed php52 packages.  I was able to solve this
fairly easily by performing a yum install of php52-devel after which
everything worked fine:

[root@juicy klord]# yum install php52-pecl-apc
Loaded plugins: fastestmirror, kmod
Loading mirror speeds from cached hostfile
 * epel: mirrors.tummy.com
 * ius: dl.iuscommunity.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php52-pecl-apc.x86_64 0:3.0.19-3.ius.el5 set to be updated
--> Processing Dependency: /usr/bin/pecl for package: php52-pecl-apc
--> Running transaction check
---> Package php-pear.noarch 1:1.4.9-6.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================
 Package                              Arch
Version                                   Repository
Size
==============================================================================================================================================
Installing:
 php52-pecl-apc                       x86_64
3.0.19-3.ius.el5                          ius
82 k
Installing for dependencies:
 php-pear                             noarch
1:1.4.9-6.el5                             base
344 k

Transaction Summary
==============================================================================================================================================
Install      2 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 425 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): php52-pecl-apc-3.0.19-3.ius.el5.x86_64.rpm
                                                |  82 kB     00:00
(2/2): php-pear-1.4.9-6.el5.noarch.rpm
                                                | 344 kB     00:00
----------------------------------------------------------------------------------------------------------------------------------------------
Total
                                       837 kB/s | 425 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : php-pear
                                                                   1/2
  Installing     : php52-pecl-apc
                                                                   2/2

Installed:
  php52-pecl-apc.x86_64 0:3.0.19-3.ius.el5

Dependency Installed:
  php-pear.noarch 1:1.4.9-6.el5

Complete!


I should also note that I ran into this both before and after
installing yum3 (with a "yum clean all" inbetween for good measure).
This is on CentOS 5.3 btw.

Hope this helps and let me know if you need anything else.

--
Kevin Lord
Linux System Administrator II
Rackspace Hosting



Follow ups