RailsTutorial:找不到 diff-lcs-1.1.3

发布于 2024-12-11 23:22:14 字数 600 浏览 0 评论 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.

运行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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小镇女孩 2024-12-18 23:22:14

您应该首先运行 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失败,我想你应该再看一遍前面的部分。

You should run bundle install first as mentioned in the error message above

Run bundle install or bundle install --without production first

and 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文