2012-03-11 55 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)。