From: Luis Lavena Date: 2010-08-03T12:00:13+09:00 Subject: Re: Installing mysql gem on Win7 x64 for MySQL 5.1.x On Aug 2, 11:01 pm, Geoff Rowell wrote: > > Okay. The "mingw32" platform isn't intended for Cygwin. However, I think > you're focusing on a minor detail and missing these key points: > > 1. You need to specify the "x86-mswin32" platform when loading the gem > on a 64-bit Win7 system running the mswin32 flavor of Ruby. > Unless you installed a 64bits version of ruby, that is the only way. Ruby 32bits (from garbagecollect) install gems with x86-mswin32-60 platform RubyInstaller (from rubyintaller.org) install gems with x86-mingw32. > 2. Getting the gem to install is only half the battle. You still need to > get a copy of the DLL that matches the gem. These directions allow you > to run a later version of MySQL than the one used to build the gem. > I don't understand the battle about the gem installation, you don't need to provide any options to it, it just install the binary. Of course you still depend on a working MySQL installation, and the libmysql.dll available in the system and accessible to Ruby. > 3. Despite spending some serious time looking into this problem, I was > unable to find all of this information organized in one location. I felt > that this forum was a logical place to look for this information. > I think a wiki page, like the one I have mentioned fits better. Also, there are 2 or 3 tutorials in that page that provide instructions on how to install it and even more, how to compile the gem to a different version of the gem. Things in the forum (actually a mailing list) get lost with time and people will still ask again. Is more easy point to a always persistent link (wiki). > I'm just trying to ease the way of some other poor soul running into > this problem. > Understood, but still, the instructions are not accurate and your indications add more noise to the problem. Sometimes I see people suffering that Ruby is complicated on Windows and most of the time is associated with the instructions they are following. -- Luis Lavena