Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to get the gem mysql2 installed on centOS5.3 but resulting in a conflict to mysql55.

Sometimes (not always) I can install mysql55 and mysql55-server but after that I need to install mysql-devel to get a missing mysql.h file on the gem mysql2 installation.

But mysql-devel conflicts to mysql55 and install fails.

Does anyone know if it is possible to get the following environment up?

rails 3.2 ruby 1.9.3 mysql 5.5 apache + passenger

on CentOS5.3 final machine?

if it doesn't which one you recommend me?

This is my other possibilites:

CentOS 5.5 debian 5.0.6 openSUSE 11.2 Ubuntu 10.04.1 Fedora 12

Thank you.

share|improve this question
Have you tried mysql55-devel. You need the development headers that match the installed server, most likely. – Kyle Smith Mar 12 '12 at 0:51

You can follow this thread at StackOverflow which explains the solution for CentOS. This problem will be fixed if you tweak the commands with regards to your OS and you are able to successfully install the mysql2 gem.

share|improve this answer

Have you looked at the MySQL site for RPMs?

Select "Oracle Linux", which is a RHEL derivative (MySQL is an Oracle product now, so this is just some stupid branding game on their part). You should see the MySQL, MySQL-shared, MySQL-devel and MySQL-compat packages for x86_64 and i386 architectures. Try using those. You may need to uninstall the CentOS default packages.

share|improve this answer

Your Answer


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.