views:

31

answers:

1

Just wanted to know if anyone out there has had the same difficulty as I have - I've done a vanilla install of Ruby 1.9.1 using the windows installer, with only a couple of gems:

actionmailer (2.3.8)
actionpack (2.3.8)
activerecord (2.3.8)
activeresource (2.3.8)
activesupport (2.3.8)
bson (1.0.3)
jnunemaker-validatable (1.8.4)
mongo (1.0.3)
mongo_mapper (0.8.2)
mysql (2.8.1 x86-mingw32)
plucky (0.3.2)
rack (1.1.0)
rails (2.3.8)
rake (0.8.7)

On a frequent basis, when a page is requested, WEBrick starts spitting out Segmentation Faults, or the Ruby runtime just packs it in altogether ("... has stopped working").

I've tried the same setup with the 1.8.7 installer with the same result. I really want to do some dev with Rails, but this is beyond a pain in the ass, and isn't really helping its cause.

PS: I'm a relative n00b to the land of Ruby/Rails, so if it's something really obvious that I've missed in the setup, be gentle :)

A: 

Hello,

Have you checked the version of MySQL you're using?

The mysql gem you've installed is sensible (and specific) to a version of MySQL. That is because libMySQL.dll, the library that the gem uses to connect to MySQL introduced incompatible changes between the versions.

You can read more about that here:

http://blog.mmediasys.com/2009/08/21/mysqlruby-2-8-1-released/

And also in the tutorials of RubyInstaller project:

http://wiki.github.com/oneclick/rubyinstaller/tutorials

I would personally recommend use Ruby 1.8.7 instead of 1.9.1, as the issues you may encounter with 1.9.1 will be higher than 1.8.7

Hope that helps.

Luis Lavena