Cannot use sqlite3 with ruby 1.9.2 and rails 3.0.0 on windows -


First of all, my reference has been briefly explained, then the question is:

  1. i different With the applications now used Ruby on Rail for 3 years, and upgraded from 1.2 to 2.3.9. I want to upgrade 3.0.0 as soon as possible.
  2. I asked all to read about it using the current version 1.9.2 of Ruby to work with Rail 3.0.0.0, so I installed precompiled Binary 1.9.2 Windows On.
  3. I remember that sqlite3 needs to install DLL somewhere in the path, so I copied it to the new bin directory.
  4. I made the required skeleton 3
  5. I created a new application, generated a dummy table migration, and tried to 'rake db: migrate'
  6. Answer Was: rake aborted! No driver was found for Sqlite3
  7. I searched around and gave some answers, which I asked myself to install binary for sqlite3 (which is accessible to me Is out of).

    Here's the question:

    What is the correct setup for using Rail 3.0.0 on Ruby 1.9.2 on Windows?

    By the way, just sqlite3-ruby, I got a new version (1.3.1) which seemed to work. But when I wanted to use it in the railroad, the railroad urged to install version 1.2.5 (which clearly does not work for me).

Well, I know this is a bad style, but I found a solution for me I do not know Why did not work in the first place ...

The solution for me was:

  1. Install the latest version of sqlite3 - Ruby (currently version 1.3.1 )

  2. This installation gives you information (in the form of text in DOS Shell) where the correct sqlite3.dll has the information to copy. Be sure to copy it to Ruby (or anywhere on your path) in the bin directory.

  3. Make sure your gemfile (app-root / gefame) requirements are listed:

  4. A 'Rake DB: Migrate Now '(which should then work).

  5. < does not.


Comments