Subhransu Mishra
Subhransu Mishra

Reputation: 3071

Error In Database Creation

hi all I am following the RoR guide to create a sample blog application i have written on command line:

 rake db:create
 (in /home/fb_app/rails_apps/blog2)
 Could not find gem 'sqlite3-ruby (>= 0, runtime)' in any of the gem sources listed in   your Gemfile.
 Try running `bundle install`.

why i am getting this error .I have also done "bundle install" still this error is coming .

Upvotes: 2

Views: 353

Answers (2)

Dev Sahoo
Dev Sahoo

Reputation: 12101

Try by installing the following packages

apt-get install ruby1.8-dev libsqlite3-ruby libsqlite3-dev

This should solve the problem.

Upvotes: 1

Rob
Rob

Reputation: 415

If you are on Ubuntu (or another Debian distro) make sure you have run:

apt-get install ruby1.8-dev build-essential

Upvotes: 0

Related Questions