mySQL Not working with rails app

Be sure you have gcc and the ruby-dev packages installed.


Hey Joe-

  You need the native mysql bindings. If you installed mysql from standard debian packages you should be able to get it to work with the following command:

$ sudo gem install mysql -- --with-mysql-config

  Copy and paste that and make sure you keep the extra -- it is needed.


Hi Joe

You mention you're using debian - is ruby installed from binary
packages or from source?

If it's binary you should just be able to apt-get install
If source make sure you have ruby-dev and build-essential* installed,
then try installing the gem again.

* you probably don't need all of build-essential, but there's no harm
in doing so