LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error: php53-common conflicts with php-common (https://www.linuxquestions.org/questions/linux-newbie-8/error-php53-common-conflicts-with-php-common-884462/)

Shahnawaz Uqaili 06-04-2011 12:52 AM

Error: php53-common conflicts with php-common
 
Dear friends.

I have installed php 5.3.6-4 on centOS 5.6.

When i try to install some modules of php then it gives an error

php53-common-5.3.3-1.el5_6.1.i386 from updates has depsolving problems
--> php53-common conflicts with php-common
Error: php53-common conflicts with php-common
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 program package-cleanup is found in the yum-utils package.

I have reinstall it twice but each time i get same error.
Any help will be appreciable.

Regards,

Shahnawaz Uqaili

andrewthomas 06-04-2011 01:03 AM

Did you try the suggested commands?

Try running:

Code:

package-cleanup --problems
and
Code:

package-cleanup --dupes
and post the output.

Shahnawaz Uqaili 06-04-2011 01:11 AM

Thanks for quick response Andrew. I got this output

[root@server ~]# package-cleanup --cgi
-bash: package-cleanup: command not found
[root@server ~]# package-cleanup --dupes
-bash: package-cleanup: command not found

andrewthomas 06-04-2011 01:21 AM

It doesn't look like you have the package.

Code:

yum install yum-utils
Then try again.

Shahnawaz Uqaili 06-04-2011 01:31 AM

Instaqlled yum utils successfully

Installed:
yum-utils.noarch 0:1.1.16-14.el5.centos.1

But still same error on installing php modules like php-cgi, ctype, curl etc.
NOTE: I'm doing all this with remi repository because it has the latest php.

Shahnawaz Uqaili 06-04-2011 01:54 AM

I found a bug on centOS 5.6
There is always conflict in php53-common and php-common. You can check this

http://bugs.centos.org/view.php?id=4852

Can any one have the alternate solution for this?

jjj0923 06-28-2011 08:51 AM

I'm faced with the same problem - I just tried --skip-broken

I'm getting to load my php application later today and we'll see if it works.

jeff

huzoorbux 09-07-2011 01:50 AM

Facing the same problem when i am going to instal yum install php-curl

Quote:

[root@new ~]# yum install php-curl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: fedora-epel.mirror.lstn.net
* rpmforge: fr2.rpmfind.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php53-common.x86_64 0:5.3.3-1.el5_6.1 set to be updated
--> Processing Conflict: php53-common conflicts php-common
--> Finished Dependency Resolution
php53-common-5.3.3-1.el5_6.1.x86_64 from updates has depsolving problems
--> php53-common conflicts with php-common
Error: php53-common conflicts with php-common
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 program package-cleanup is found in the yum-utils package.

gautsch 09-18-2011 03:06 AM

solving the php conflict
 
To solve the conflict, remove all php packages (php-common, php-mysql, php-xml, etc) and replace them with their php53 equivalent, i.e. php-common -> php53-common and so on. I also had to reinstall mysql. Don't forget to restart Apache to load the newly installed extensions.

Melanie 01-16-2012 09:42 AM

Additional information:

php-curl, php-json and a few others have no php53 equivalents. They have been removed from the repo and replaced with dummy dependency packages that pull in php53-common because these popular extensions are now part of every php install with version 5.3.

Therefore you will find that these packages cannot be installed even after upgrading to php 5.3. This is a nonissue, they are not required and these extensions are already present, don't install those packages anymore.

fogmann 04-18-2012 12:46 AM

php53-devel
 
I ran into this same problem trying to run:
# yum -y install php-devel

Resolved it by runing:
# yum -y install php53-devel

Amlesh 05-29-2012 02:14 AM

I have just checked that I have installed php through yum which has installed php5.1.6, because of which when I was trying to install php53-gd, it was conflicting with the php-common. I have checked with the below command for install php modules:
rpm -qa | grep -i php
and after that I have removed all the modules using yum remove, and then installed php53-gd, which worked like a charm for me.
below are the commands, I have used

rpm -qa | grep -i php
yum remove php
yum remove php-cli
yum remove php-pdo
yum remove php-common
yum install php53-gd

This installed gd.so in /usr/lib64/php/modules/gd.so, i have just modiflied the php.ini file with enabling gd by adding below line below the line : ;extension=php_gd2.dll

extension=/usr/lib64/php/modules/gd.so

At last I restarted the apache and it works for me.

centos123 06-11-2012 12:22 AM

i uninstalled php-5.1 and trying to install php53 but still it error
php53-common conflicts with php-common..

and cannot install yum install yum-plugin-replace
No package yum-plugin-replace available.


All times are GMT -5. The time now is 10:55 AM.