Justin Meltzer
Justin Meltzer

Reputation: 13548

Error when creating database with a RoR app

I get this error message when running rake db:create

Could not find gem 'sqlite3 (>= 0, runtime)' in any of the gem sources listed in your Gemfile.

Any ideas on what I should do?

Upvotes: 0

Views: 198

Answers (2)

Josh
Josh

Reputation: 13

I'm totally new to Rails development, but I had this same problem this week. Eventually, I replaced the line gem 'sqlite-ruby, :require => 'sqlite3' with gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3' (in the Gemfile)

I had to do this because I'm running Mac OS 10.5.8 rather than 10.6

Maybe that will help.

Upvotes: 0

fl00r
fl00r

Reputation: 83680

  1. Open Gemfile from the root of your Rails application

  2. Add this line gem 'sqlite3-ruby', :require => 'sqlite3'

  3. run bundle install

  4. run rake db:create

Upvotes: 3

Related Questions