捆绑安装失败 - Rails 教程

发布于 2024-12-26 16:12:53 字数 635 浏览 4 评论 0原文

bundle install
Fetching source index for http://rubygems.org/
Could not find gem 'annotate-models (= 1.0.4) ruby' in any of the gem sources listed in your Gemfile.

但显然它在我的 gemfile 中,不是吗?

source 'http://rubygems.org'

gem 'rails', '3.0.0'
gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3'
gem 'gravatar_image_tag', '0.1.0'
gem 'will_paginate', '3.0.pre2'
gem 'annotate'

group :development do
  gem 'rspec-rails', '2.0.1'
  gem 'annotate-models', '1.0.4'
  gem 'faker', '0.3.1'
end

我添加了 gem 'annotate' 并尝试了堆栈上其他地方推荐的内容,但没有成功。知道为什么它无法在源头找到宝石吗?我怎样才能手动覆盖这个?谢谢。

bundle install
Fetching source index for http://rubygems.org/
Could not find gem 'annotate-models (= 1.0.4) ruby' in any of the gem sources listed in your Gemfile.

But clearly its in my gemfile, isn't it?

source 'http://rubygems.org'

gem 'rails', '3.0.0'
gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3'
gem 'gravatar_image_tag', '0.1.0'
gem 'will_paginate', '3.0.pre2'
gem 'annotate'

group :development do
  gem 'rspec-rails', '2.0.1'
  gem 'annotate-models', '1.0.4'
  gem 'faker', '0.3.1'
end

I added gem 'annotate' and attempted what was recommended elsewhere on stack with no success. Any idea why it can't find the gem at the source? How could I manually override this? Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

屋顶上的小猫咪 2025-01-02 16:12:53

您收到该错误是因为 ruby​​gems.org 上不存在名为“annotate-models”的 gem。

您是想使用 annotate 还是annotated_models 代替?他们都没有发布 1.0.4 版本,所以我不确定你在寻找什么宝石。

You're getting that error because a gem named "annotate-models" does not exist on rubygems.org.

Did you mean to use annotate or maybe annotated_models instead? Neither one of them has a version 1.0.4 published, so I'm not sure what gem you're looking for.

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