A number of Ruby gems like the mysql2 gem are built with extensions written in C, which means they need a properly configured compiler and tool chain on the computer they're being installed on; without it the build process fails and the gem doesn't install correctly.
These things are standard on Linux installations of course, but not in Windows. However the guys at the RubyInstaller project have put together a development kit for Windows so that gems with native extensions will compile. Go here: http://rubyinstaller.org/add-ons/devkit/ for the project page and here: http://github.com/oneclick/rubyinstaller/wiki/Development-Kit for the installation instructions. Once you have the DevKit installed, re-run "bundle install" and hopefully the mysql2 gem should now install properly. Mark On 9 October 2010 14:24, Premanshu Mishra <li...@ruby-forum.com> wrote: > @Peter, Mark, Marnem: Thanks guys for the posts > I have kick started my first project.But on windows and that on a > sqlite3 db. I tried hard to get mysql but somehow its not willing to > dance with the rails on Windows platform. But still I would try out my > luck with JRuby on windows and later on if i can survive RoR i will > shift to Linux.... > > But if any body pokes in the direction of how to make MySQL work with > Rails on windows would be like an angel... > > hope to get further guidance from Railers. > > Many thanks, > Premanshu > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.