0

http://ruby.railstutorial.org/chapters/static-pages#top

我正在玩那个教程,执行时:

rails generate rspec:install

我明白了:

Could not find diff-lcs-1.1.3 in any of the sources
Run 'bundle install' to install missing gems.

运行捆绑显示时:

...
* builder (3.0.0)
* bundler (1.1.rc)
* diff-lcs (1.1.3)
* erubis (2.7.0)
* hike (1.2.1)
...

我确保它已安装......我可以在系统等中找到它......

有任何想法吗?从来没有真正研究过红宝石,所以这可能就是我失败的原因,哈哈

4

1 回答 1

1

您应该bundle install首先运行,如上面的错误消息中所述

运行bundle installbundle install --without production

然后运行rails g rspec:install

我强烈建议您检查:

http://ruby.railstutorial.org/chapters/static-pages#code-gemfile_rspec

并运行bundle install

我也想知道你是否成功安装了 RVM。

如果您无法安装 gems,我认为您应该再次查看上一部分。

于 2012-09-11T15:30:06.257 回答