2012-03-11 54 views
0

通過標準的Rails我的方式「入門」,我發現,當我嘗試執行「耙分貝:創建」,我總是得到錯誤不能創建在軌數據庫入門指南

Could not find i18n-0.6.0 in any of the sources 
Run `bundle install` to install missing gems. 

這裏是我的database.yml:

development: 
    adapter: mysql 
    database: attitude 
    username: attitude 
    password: *** 
    host: localhost 

# Warning: The database defined as "test" will be erased and 
# re-generated from your development database when you run "rake". 
# Do not set this db to the same as development or production. 
test: 
    adapter: mysql 
    database: attitude 
    username: attitude 
    password: *** 
    host: localhost 

production: 
    adapter: mysql 
    database: attitude 
    username: attitude 
    password: *** 
    host: localhost 

國際化創業板名單的i18n顯示出來。 Bundle show已經在/usr/lib/ruby/gems/1.9.1/gems/i18n-0.6.0上安裝了i18n我已經看到了一些似乎是使用sudo bundle install的結果的一些與stackoverflow相關的問題。我試圖創建一個新的rails項目,並小心不使用該命令,但無濟於事。我是否需要完全重新安裝導軌,或者我的Ubuntu安裝被破壞,或者是什麼?

+0

由於使用sudo,我遇到了類似的問題,我剛從頭開始用完整的ruby/rails安裝。我希望你有更好的運氣 – 2012-03-11 02:12:48

+1

如果你只是想開始使用rails,現在就忘記mysql並堅持使用sqlite。如果你真的想擁有mysql,你應該使用指南中提到的mysql2 gem http://steams.rubyonrails.org/getting_started.html#configuring-a-database – 2012-03-11 02:14:01

+0

@StefanH你能提供一點幫助嗎?我足夠新,我不知道如何恢復。 sudo apt-get purge rails還不夠,我不知道還有什麼要刪除的。 – blaha 2012-03-11 02:22:32

回答

1

運行sudo gem uninstall i18n。然後再次做一個bundle install(沒有sudo)。