通过标准Rails“开始”,我发现当我尝试执行“rake db:create”时,我总是得到错误
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出现在宝石列表i18n中。 Bundle show在/usr/lib/ruby/gems/1.9.1/gems/i18n-0.6.0上安装了i18n我看到了一些关于stackoverflow的相关问题,这些问题似乎是使用sudo bundle install的结果。我尝试创建一个新的rails项目并小心不使用该命令,但无济于事。我需要完全重新安装rails,还是我的Ubuntu安装毁了,或者是什么?
答案 0 :(得分:1)
运行sudo gem uninstall i18n
。然后再次bundle install
(没有sudo)。