安装时的Ruby On Rails gem依赖冲突" google-api-client"

时间:2014-07-11 02:58:02

标签: google-api-client

我添加到Gemfile:gem'google-api-client',“0.6.4”

1>执行“bundle install”,并收到此错误: 从https://rubygems.org/获取gem元数据.. 解决依赖关系...... Bundler找不到gem“addressable”的兼容版本:   在Gemfile中:     google-api-client(= 0.6.4)ruby依赖于       可寻址(> = 2.3.2)ruby

koala (>= 0) ruby depends on
  addressable (2.2.8)

2 - ;执行“bundle update koala”,得到了这个错误: 从https://rubygems.org/获取gem元数据.. 解决依赖关系...... Bundler找不到gem“launchy”的兼容版本:   在快照(Gemfile.lock)中:     launchy(2.1.0)

在Gemfile中:     google-api-client(= 0.6.4)ruby依赖于       launchy(> = 2.1.1)ruby

运行bundle update将仅使用从头开始重建快照 Gemfile中的宝石,可以解决冲突。

此错误的核心问题是什么? 我该如何解决?

谢谢。

[更新] 当我执行'bundle update addressable'时,出现了这个错误: 从https://rubygems.org/获取宝石元数据........ 从https://rubygems.org/获取gem元数据.. 解决依赖关系...... Bundler找不到gem“launchy”的兼容版本:   在快照(Gemfile.lock)中:     launchy(2.1.0)

在Gemfile中:     google-api-client(= 0.6.4)ruby依赖于       launchy(> = 2.1.1)ruby

运行bundle update将仅使用从头开始重建快照 Gemfile中的宝石,可以解决冲突。

1 个答案:

答案 0 :(得分:0)

您使用的考拉版本需要可寻址-2.2.8,但google-api-client需要可寻址-2.3.2或更高版本。最新版本的koala没有指定可寻址的特定版本,因此请尝试更新koala:

bundle update koala