简体   繁体   English

exon gem依赖于mandrill-api和fog之间的冲突。 (路轨3)

[英]excon gem dependency conflict between mandrill-api and fog. (Rails 3)

In my gemfile I have 在我的gemfile中,我有

gem 'rails', '3.2.11'
gem 'fog'
gem 'mandrill-api'

When I run bundle I receive this error 当我运行bundle我收到此错误

Bundler could not find compatible versions for gem "excon":
  In Gemfile:
    mandrill-api (>= 0) ruby depends on
      excon (~> 0.15.4) ruby

    fog (>= 0) ruby depends on
      excon (0.13.4)

I'm not sure how to deal with dependency conflicts like this other then searching for versions of the two conflicting gems which don't have the conflict. 我不确定如何像这样处理依赖冲突,然后搜索没有冲突的两个冲突gem的版本。 Obviously, I'd like to be able to use the versions I choose and not be limited by dependency conflicts. 显然,我希望能够使用我选择的版本,并且不受依赖冲突的限制。 In this case, I'm not even sure if it is possible to find non-conflicting versions. 在这种情况下,我什至不确定是否可以找到不冲突的版本。

My question is, can you fix this error, preferably without specifying older versions of either of the two gems? 我的问题是,您是否可以解决此错误,最好不要指定两个gem中任何一个的较旧版本?

Let me know if you need any more info to answer the question. 让我知道您是否需要更多信息来回答这个问题。

Thanks. 谢谢。

I actually had an older version of of fog specified previously. 我实际上有一个以前指定的较旧版本的fog This had the older dependency on excon . 这对excon有较早的依赖。 I ran bundle update fog and the dependency problem was solved via the newly updated version of fog . 我运行了bundle update fog并且通过新更新的fog版本解决了依赖关系问题。 I'd still like to know if you can specify different versions of gem dependencies but that should be a new stackoverflow question. 我仍然想知道您是否可以指定不同版本的gem依赖关系,但这应该是一个新的stackoverflow问题。 I'll leave this question up, incase someone else runs into this same issue. 如果有人遇到同样的问题,我将不提这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM