无法使用sqlite3运行Ruby on Rails

时间:2011-12-13 13:17:05

标签: ruby-on-rails ruby sqlite

当我尝试使用C:\Sites\qwe>rake db:create创建数据库时,我收到此错误:

Couldn't create database for {"adapter"=>"sqlite3", "database"=>"db/test.sqlite3", "pool"=>5, "timeout"=>5000}
Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (no such file to load -- sqlite3)

如果输入此命令,我会得到:

C:\Sites\qwe>gem install activerecord-sqlite3-adapter
ERROR:  Could not find a valid gem 'activerecord-sqlite3-adapter' (>= 0) in any repository
ERROR:  Possible alternatives: activerecord-jdbcsqlite3-adapter, activerecord-sqlserver-adapter, activerecord-spatialite-adapter, activerecord-simpledb-adapter, activerecord-nulldb-adapter

以下是完整列表:http://pastebin.com/5pVzk6qW

我用railsinstaller安装了ruby和ror。 知道什么是错的吗?

1 个答案:

答案 0 :(得分:0)

正在运行gem install bundle,然后bundle install解决了我的问题。