Question

I try to install Rails 3 on Windows 7, and

rails new someapp -d mysql
cd someapp
bundle install

will fail at mysql2

so, there is no way to use MySQL but to stick with SQLite3. But I tried

rails new app_postgres -d postgresql
cd app_postgres
bundle install

and it all worked.

Does that mean perhaps Rails team favor Postgresql slightly more than MySQL? Is there actually a way to make Rails 3 use the old mysql gems instead so that it can work on Windows or can you somehow make it work, such as by downloading the free Visual Studio and compile mysql2 ourselves?

Was it helpful?

Solution

Working on it For now you can use sqlite for development.

OTHER TIPS

You can now install mysql2 gem on windows7 which is working fine with Rails3. To install, follow the steps given in post - http://rorguide.blogspot.com/2011/03/installing-mysql2-gem-on-ruby-192-and.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top