Install MySQL Gem on CentOS 5

There’s a lot of conflicting information out there on how to install the MySQL gem on CentOS 5, but it’s very easy to do.  On a clean CentOS 5 install, as root, run:

yum install mysql-devel gcc make
gem install mysql -- --with-mysql-config=/usr/bin/mysql_config

That’s pretty much it.  Compile should work fine.

This entry was posted in Linux, MySQL, Ruby. Bookmark the permalink.

One Response to Install MySQL Gem on CentOS 5

  1. AMin says:

    Thx mate. Its works for me.
    Best wishes.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>