RailsTutorial:找不到 diff-lcs-1.1.3
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.
运行bundle show时:
...
* builder (3.0.0)
* bundler (1.1.rc)
* diff-lcs (1.1.3)
* erubis (2.7.0)
* hike (1.2.1)
...
并且我确保它已安装...... 我可以在系统等中找到它......
有什么想法吗?从来没有真正研究过 ruby,所以这可能就是我失败的原因,哈哈
http://ruby.railstutorial.org/chapters/static-pages#top
i was playing around with that tutorial and when executing:
rails generate rspec:install
i get this:
Could not find diff-lcs-1.1.3 in any of the sources
Run 'bundle install' to install missing gems.
when running bundle show:
...
* builder (3.0.0)
* bundler (1.1.rc)
* diff-lcs (1.1.3)
* erubis (2.7.0)
* hike (1.2.1)
...
and i made sure its installed....
i can find it in the system etc....
any ideas? never really looked into ruby so that might be why i am failing already, haha
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该首先运行
bundle install
,如上面错误消息中所述,首先运行
bundle install
或bundle install --without production
,然后运行
rails g rspec:install
我强烈建议您检查:
http://ruby.railstutorial.org/chapters/static-pages#code-gemfile_rspec
并运行
bundle install
。我也想知道你是否安装了RVM成功。
如果你安装gems失败,我想你应该再看一遍前面的部分。
You should run
bundle install
first as mentioned in the error message aboveRun
bundle install
orbundle install --without production
firstand then run
rails g rspec:install
I highly recommend you check:
http://ruby.railstutorial.org/chapters/static-pages#code-gemfile_rspec
and run
bundle install
.I also wonder if you installed RVM successfully.
If you fail to install gems, I think you should go over the previous part again.