我不知道我在 OSX Mountain Lion 下安装 ruby / rails 发生了什么。
我从一个黑色的 rails 应用程序开始,运行 bundle 并列出已安装的 bundle,bundle show
我得到了这个:
[..]
* sqlite3 (1.3.7)
* thor (0.17.0)
* tilt (1.3.3)
* treetop (1.4.12)
[..]
一旦我运行 rake db:migrate 我得到以下错误:
Could not find thor-0.17.0 in any of the sources
Run `bundle install` to install missing gems.
但是,如图所示,安装了 thor-0.17。如果我强迫它:
sudo gem install --version 0.17 thor
Successfully installed thor-0.17.0
1 gem installed
Installing ri documentation for thor-0.17.0...
Installing RDoc documentation for thor-0.17.0...
并再次运行迁移,我一直有依赖错误(在这种情况下“在任何源中都找不到 formtastic-2.2.1”)对于捆绑包说已经安装的 gem。有什么帮助吗?谢谢
编辑
- 宝石文件: http ://pastebin.com/WSz5dLrm
- Gemfile.lock:http ://pastebin.com/2kuFz1kK