LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Getting Error: Missing Dependency: php-common, when trying to install php-soap (https://www.linuxquestions.org/questions/linux-software-2/getting-error-missing-dependency-php-common-when-trying-to-install-php-soap-789741/)

amish123 02-17-2010 11:38 AM

Getting Error: Missing Dependency: php-common, when trying to install php-soap
 
Hello,

I want to install php-soap on centos 5.2 server.
When i run the command, yum install php-soap, i get the error:

php-soap-5.1.6-24.el5_4.5.i386 from updates has depsolving problems
--> Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-soap-5.1.6-24.el5_4.5.i386 (updates)
Error: Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-soap-5.1.6-24.el5_4.5.i386 (updates)
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

The php common file is not actually missing, its there with the exact name. The problem seems to be that the php-common file is installed from some other repository, thats y it is creating dependency problem.

The only solution i found is to remove the current php-common file and install it again, but then lot of programs get uninstalled with it, which is y am afraid of doing that, since its a vps, and some 10 sites are working on that.

above solution is found at, http://blog.stompnoise.com/?p=42

Any help is appreciated. Thanks a lot.

knudfl 02-17-2010 02:21 PM

Same repo actually, but out of one of 1000 packages will make
yum / rpm behave that way.
You can set the /etc/yum.conf to keepcache=1
to be able to access the package in /var/cache/yum/updates/...
or just download the package ..
http://mirror.centos.org/centos/5.4/updates/
http://mirror.centos.org/centos/5.4/...5_4.5.i386.rpm

And the install with :
# rpm -Uvh --nodeps php-soap-5.1.6-24.el5_4.5.i386.rpm

Thus circumventing the dependency error / bug.
Usually with no problems at all.
.....

amish123 02-18-2010 10:10 AM

hello knudlf, thanks for replying.

I tried both the ways u mentioned, but none worked,

1st i tried installing the package, and it gave me following result,

~]# rpm -Uvh --nodeps http://mirror.centos.org/centos/5.4/...5_4.5.i386.rpm
Retrieving http://mirror.centos.org/centos/5.4/...5_4.5.i386.rpm
Preparing... ########################################### [100%]
1:php-soap ########################################### [100%]

It seemed that the package got installed, then i tried installing php-soap, and it gave me following result,

~]# yum install php-soap Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.rackspace.com
* base: mirror.skiplink.com
* extras: mirror.atlanticmetro.net
* updates: hpc.arc.georgetown.edu
addons | 951 B 00:00
base | 2.1 kB 00:00
extras | 1.1 kB 00:00
updates | 1.9 kB 00:00
Setting up Install Process
Package php-soap-5.1.6-24.el5_4.5.i386 already installed and latest version
Nothing to do

Since that didn't worked, i tried the next option, of setting keepcache in the /etc/yum.conf, and i got the same result as above , when i tried to install php-soap

Thanks, for your help, please tell what should I try next

knudfl 02-18-2010 07:26 PM

Quote:

please tell what should I try next
Nothing, I think, the package is installed, as expected,
with the ' rpm -Uvh --nodeps ' command :
Quote:

Package php-soap-5.1.6-24.el5_4.5.i386
already installed and latest version
.....


All times are GMT -5. The time now is 07:00 AM.