Skip to main content
  1. Posts/

Installing the mysql gem in Fedora 11 64-bit

·90 words·1 min·

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...