1

I am following this backbone rails turotial.

The tutorial says they are using Ruby 1.9.2 and rails 3.0.3.

I am using Ruby 1.9.3, and I created an rvm gemset for this tutorial and installed rails 3.0.3 into the gemset.

I ran bundle install which installed mysql2 version 0.3.11

When I ran rake db:create I got this error:

WARNING: This version of mysql2 (0.3.11) doesn't ship with the ActiveRecord adapter bundled anymore as it's now part of Rails 3.1

WARNING: Please use the 0.2.x releases if you plan on using it in Rails <= 3.0.x

So I ran:

gem uninstall mysql2
gem install mysql --version 0.2
rake db:create

Then I got this error:

Could not find mysql2-0.3.11 in any of the sources

Try running bundle install.

If I run bundle install it takes me back to the first problem.

Not sure what the I should try next.

1 Answer 1

3

place in Gemfile

gem 'mysql2','0.2.7'

then run

bundle install

Sign up to request clarification or add additional context in comments.

1 Comment

Yes, this fixed it, might want to clarify though that the first line goes into the Gemfile.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.