If you are trying to install Rails 3 on Windows 7, you might have run into a few problems. Now, I’m a total Rails n00b, but I’ll share my fix for getting the server to run without barking. Until the mysql2 gem is updated to work on Windows 7, you can use the older mysql gem in these simple steps:
- Install Rails 3.0 under Ruby 1.9.2 (be sure you already have MySQL installed, or else Google installation instructions and make it happen)
- Update your gems and make sure to install mysql.
- Create a Rails project and open your Gemfile.
- Comment out gem mysql2 like this:
#gem 'mysql2'
and addgem 'mysql'
- Now copy the file libmysql.dll (mine was in C:\wamp\bin\mysql\mysql5.1.36\bin) to your Ruby bin directory (should be C:\Ruby192\bin)
- You should be good to go. Try running
rails server
from your app directory.
Works for me! Hopefully, us unfortunate Windows users will be able to use the newer mysql2 gem soon.



