Installing the mysql gem in Fedora 11 64-bit

On some systems, getting the mysql gem to build can be a little tricky. Fedora 11 x86_64 will require a bit of extra finesse to get the gem installed. First off, ensure that you've installed the mysql-devel package:

# yum -y install mysql-devel

I'll assume that you already installed the rubygems package. You can install the mysql gem like this:

# gem install mysql -- --with-mysql-config=/usr/bin/mysql_config
Building native extensions.  This could take a while...
Successfully installed mysql-2.7
1 gem installed
Installing ri documentation for mysql-2.7...
Installing RDoc documentation for mysql-2.7...
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Printed from: http://rackerhacker.com/2009/08/07/installing-the-mysql-gem-in-fedora-11-64-bit/ .
© Major Hayden 2010.

Leave a Reply