Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: RHEL, CentOS, Debian/Ubuntu, Microsoft Windows
Posts: 46
Rep:
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.
Distribution: RHEL, CentOS, Debian/Ubuntu, Microsoft Windows
Posts: 46
Original Poster
Rep:
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
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.
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.
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.