2011-12-13 28 views
0

運行Ruby on Rails的。當我試圖用C:\Sites\qwe>rake db:create創建分貝我得到這個錯誤:不能與sqlite3的

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。 任何想法有什麼不對?

+0

你能粘貼你的Gemfile嗎? – subosito

+0

我傾向於認爲這與sqlite3 gem由於依賴關係而無法構建有關。 – Eugene

+0

請運行'gem install bundle',然後從你的應用程序根目錄下運行'bundle install',並在這裏粘貼輸出 –

回答

0

運行gem install bundle然後bundle install解決了我的問題。