← Back to team overview

ius-community team mailing list archive

Re: Error resolving deps for php-pear

 

Hey Kevin,

Thanks for the report. I saw something like this once, but thought it was a fluke. Now I'm thinking something else is wrong... I was able to reproduce the issue by simply attempting to install 'php-pear' while only php52, php52-cli, php52-common were installed. Yum attempts to resolve php-devel with the stock package rather than php52- devel even though the yum3 fix package is installed which is suppose to resolve this issue. I then removed all php52 packages and re- installed them. After this, yum began resolving the dependency properly.

The patch applied to the yum3 package is the original patch I submitted upstream. The way they implemented it was slightly different so I am going to look at backporting the changes they actually applied to see if that resolves the issue... however, I am not certain how to reproduce the issue now that my test box is working normally again.

If you can still reproduce the issue by uninstalling php-pear and php52-pecl-apc and then re-installing them, can you leave your box as is [meaning don't remove all php52 packages as I did] and test out a new yum3 package when I get it?

Thanks Kevin.

---
BJ Dierkes
Linux Systems Engineer IV / [RH]acker
Infrastructure Services [OS & Applications]
Rackspace Hosting

On Oct 30, 2009, at 10:30 PM, Kevin Lord wrote:

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

_______________________________________________
Mailing list: https://launchpad.net/~ius-community
Post to     : ius-community@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~ius-community
More help   : https://help.launchpad.net/ListHelp




References