Being primarily a PHP developer, I always use an AMP package no matter what development platform I am on. So when it comes to developing Ruby/Rails applications on the same platform, I’d like to use what is already available.

Mike Boone has posted a very useful tutorial on how to get MySQL gem and MAMP 1.7.2 up and running. So, to recap and make the tutorial compatible with Snow Leopard and MAMP 1.8.x, here is what you need to do:

This entry was posted
on Tuesday, November 10th, 2009 at 2:28 pm and is filed under Ruby.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.

Hmm. Everything went well until the last step. I’m getting a big string of output like:
Installing ri documentation for mysql-2.8.1...

No definition for next_result

No definition for field_name

No definition for field_table

No definition for field_def

No definition for field_type

...

Installing RDoc documentation for mysql-2.8.1...

No definition for next_result

No definition for field_name

No definition for field_table

No definition for field_def

...

Total noob when it comes to Ruby…just trying to get mysql (with MAMP, of course) working so I can toy around and start learning. Any ideas? I tried the last update tip, too, and added to my PATH variable.

As far as I can tell, everything went well with the make, copying, etc. I was watching what happened and I do have new files where I’d expect them to be in the MAMP folder.

I’m on MAMP 1.8.3, and that’s the source I downloaded as well. Running Snow Leopard 10.6.2… running the standard ruby that comes with OS X:

ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]

Also, running rubygems 1.3.5, which I installed manually, according to instructions on some site I found earlier. gem normally seems to work with the few gems I’ve installed, but not this one.

OK, upon closer inspection, it would appear that the gem did install, but the documentation was not built. All of those documentation errors obscured the “1 gem installed” line. So, if there is any advice on how to get the documentation built, that would be fabulous, but actually it looks like the gem is installed and working, so thanks for the post!