我在 Refinery CMS 中创建了一个新的应用程序,并根据他们的指南按照说明进行操作。 http://refinerycms.com/download
但是当我去运行 rails server 时,我收到关于 gem 依赖项的错误。通常这些很容易修复。但是当你有冲突的依赖关系时该怎么办?这是我得到的错误之一
Bundler could not find compatible versions for gem "refinerycms-core":
In Gemfile:
refinerycms-blog (~> 2.0.0) ruby depends on
refinerycms-core (~> 2.0.0) ruby
refinerycms (~> 2.1.0) ruby depends on
refinerycms-core (2.1.0)
当我过去遇到这个问题并添加了特定的 gem 时,它仍然会给我一个错误,说它也需要另一个 gem。我在这里做错了什么?
最佳答案
在 Twitter 上收到了发给我这个链接的炼油厂人员的回复
https://github.com/refinery/refinerycms/issues/2386#issuecomment-22978992
也就是说把 gem 改成
gem 'refinerycms-blog', github: 'refinery/refinerycms-blog', branch: 'master'
关于ruby-on-rails - 同一 gem 的冲突 gem 依赖项。 ruby 依赖于 refinerycms-core,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18347601/