Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I get the following error on yum install mysql-devel. Can anyone help? I dont have this in my /etc/yum.conf exclude list.

--> Finished Dependency Resolution
mysql-server-5.0.45-7.el5.x86_64 from installed has depsolving problems
  --> Missing Dependency: mysql = 5.0.45-7.el5 is needed by package mysql-server-5.0.45-7.el5.x86_64 (installed)
Error: Missing Dependency: mysql = 5.0.45-7.el5 is needed by package mysql-server-5.0.45-7.el5.x86_64 (installed)
 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

Please help!

share|improve this question
add comment

2 Answers

It looks like you are using an older version of MySQL, and a 3rd party yum repository has a newer version. It also looks like your php module might come from that 3rd party repo and depends on the newer version of MySQL.

You have a few options.

  1. Upgrade MySQL by uninstalling the mysql50 package and installing the mysql package. You should backup your databases first if this is the database server.

  2. Find a different repo for your php module that does not have mysql packages in it.

  3. Remove this 3rd party repo. Download the php module from the repo and install it with the rpm command or put it into your own local yum repo.

  4. Compile this php module from source against the included version of mysql.

share|improve this answer
1  
Agreed. There's probably a disabled-by-default repository that mysql-server was installed from. Another suggestion would be to try yum install mysql-devel --enablerepo=* since building from source is going to create even more problems. –  Aaron Copley Mar 23 '12 at 13:51
add comment

Things I'd try:

yum clean all ; yum install mysql-devel

If it was an intermittent problem with the yum repo you're using, that could fix it.

rpm -qa \*mysql\*

It's also possible that you have duplicate copies of the same package installed. I've seen very similar errors to what you describe when that happened.

share|improve this answer
add comment

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.