Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

if i try to install php-mysql I get the following error... not sure how to recover from it to get MySQL and the PHP MySQL module up and running

[12:51]~> yum install php-mysql
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * addons: mirror.rocketinternet.net
 * base: mirror.san.fastserv.com
 * epel: mirrors.kernel.org
 * extras: mirror.nic.uoregon.edu
 * ius: www.applesauceman.com
 * updates: mirror.5ninesolutions.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mysql.x86_64 0:5.1.6-27.el5_5.3 set to be updated
--> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-mysql
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15)(64bit) for package: php-mysql
--> Processing Dependency: libmysqlclient.so.15()(64bit) for package: php-mysql
--> Running transaction check
---> Package mysql.x86_64 0:5.0.77-4.el5_5.4 set to be updated
---> Package php-common.x86_64 0:5.1.6-27.el5_5.3 set to be updated
--> Processing Conflict: mysql conflicts MySQL
--> Finished Dependency Resolution
mysql-5.0.77-4.el5_5.4.x86_64 from updates has depsolving problems
  --> mysql conflicts with MySQL-server-community
Error: mysql conflicts with MySQL-server-community
 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.
share|improve this question

1 Answer 1

up vote 0 down vote accepted

You'll need to install the shared compatibility libraries package from the same place that you got the server package first.

share|improve this answer
    
You rock, but I have no idea where this was from, I didnt install the initial PHP or MYSQL –  qodeninja Feb 24 '11 at 21:03
    
Try the download section of the MySQL website. –  Ignacio Vazquez-Abrams Feb 24 '11 at 21:04
    
So are you saying I need like mysql51-libs.x86_64 from yum, then I can install php-mysql? –  qodeninja Feb 24 '11 at 21:11
    
No. You need the MySQL-shared-compat package from the MySQL website, with the appropriate version and release to match the currently installed MySQL-server-community package. –  Ignacio Vazquez-Abrams Feb 24 '11 at 21:14
    
Haha I dunno how to check what version I need =/ –  qodeninja Feb 24 '11 at 21:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.