ruby-on-railsrubywindows-xpchiliproject

Rails and SQLITE3 problem


I am trying to install "ChiliProject" on my Windows XP SP3. Everything was fine until I tried to process the db:migrate.

C:\RubyApps\chiliproject>bundle exec rake db:migrate

Then I get the error:

rake aborted! no such file to load -- sqlite3

I have the sqlite3 gem installed:

sqlite3 (1.3.4 x86-mingw32 x86-mswin32-60)

The three files: sqlite3.exe, sqlite3.dll, sqlite3.def from sqlite.org are put in the "C:\Ruby192\bin" directory (which is my default ruby dir).

The database configuration is (database.yml):

production:
  adapter: sqlite3
  database: db/production.db

What am I doing wrong?


Solution

  • according to this post http://railsforum.com/viewtopic.php?id=40674 you probably need to add

    gem 'sqlite3-ruby', :require => 'sqlite3' to your Gemfile,

    and after that try to run bundle package and rake db:create and finally rake db:migrate