Bundler 找不到 gem“activerecord”的兼容版本
我正在尝试安装acts_as_commentable_with_threading。我已将“gem 'acts_as_commentable_with_threading'”添加到我的 Gemfile 中。
当我从命令行运行“bundle install”时,我得到以下信息。
Fetching source index for http://rubygems.org/
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
acts_as_commentable_with_threading depends on
activerecord (~> 3.0.0)
rails (= 3.1.0) depends on
activerecord (3.1.0)
那么acts_as_commentable_with_threading 不适用于activerecord 3.1.0?我不知道如何解决这个问题?
谢谢
I am trying to install acts_as_commentable_with_threading. I have added "gem 'acts_as_commentable_with_threading'" to my Gemfile.
When I run "bundle install" from the command line I get the following.
Fetching source index for http://rubygems.org/
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
acts_as_commentable_with_threading depends on
activerecord (~> 3.0.0)
rails (= 3.1.0) depends on
activerecord (3.1.0)
So acts_as_commentable_with_threading won't work with activerecord 3.1.0? I am not sure how to workaround this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
目前,您无法解决这个问题,因为
acts_as_commentable_with_threading
依赖于使用~>; 3.0.0
表示>= 3.0.0
但< 3.1
(参考:http://gembundler.com/rationale.html - “更新依赖项”部分)唯一的选择是:
Currently, you can't work around it, because
acts_as_commentable_with_threading
is dependent using~> 3.0.0
which means>= 3.0.0
but< 3.1
(ref: http://gembundler.com/rationale.html - section "Updating a Dependency")The only options are to:
根据 https://github.com/elight/acts_as_commentable_with_threading/issues/19
你可以使用bundle update,它会解决冲突。
别紧张!
According to https://github.com/elight/acts_as_commentable_with_threading/issues/19
You can use bundle update, and it will resolve the conflict.
Take it easy!
这里使用rails 3.1版本:
https://github.com/dfischer/acts_as_commentable_with_threading
Use the rails 3.1 version here:
https://github.com/dfischer/acts_as_commentable_with_threading