From: Luis Lavena Date: 2009-11-11T04:40:06+09:00 Subject: Re: Installing Rails: MySQL issue? On Nov 10, 2:24 pm, Brian Tickler wrote: > Hello, > > I am installing Rails, with MySQL, based on the steps found at: > > http://www.wdvl.com/Authoring/ror/Vista/saurabh_bhatia10202009.html > Please use MinGW based Ruby instead of One-Click: http://blog.mmediasys.com/2009/07/06/getting-started-with-rails-and-mysql/ You can download latest RC1 instead of Preview2: http://rubyforge.org/forum/forum.php?forum_id=35591 Please now use official gems.rubyforge.org without specifying rubyinstaller source during gem installation. > > C:\> gem install mysql > > Running the above command does the trick most of the time. However we > need to take care that MySQL gem gives various problems related to the > installation path. In order to resolve that, we can compile it with > various options manually defined." The binary version of MySQL gem was built against MySQL 5.0. As mentioned in the post, using 5.1 will generate issues, and most likely segmentation faults. > Well, maybe I am having the aforementioned problem with the installation > path...when I enter "gem install mysql" (with MySQL 5.1 already > installed and tested), I get a heap of "No definition for XYZ" messages. > The page recommends compiling it manually, but does not give any > indication on how to do this :). You can safely ignore "No definition for XYZ", that is a issue with RDoc trying to generate documentation for SWIG interface, and failing due the lack of comments. > Is there any way to run this manually, or to confirm whether the > database connector is functional? Using the above examples you get a functional Ruby and MySQL. HTH, -- Luis Lavena