当安装"google-api-client"时,Ruby On Rails gem依赖冲突. [英] Ruby On Rails gem dependency conflict when install "google-api-client"

查看:78
本文介绍了当安装"google-api-client"时,Ruby On Rails gem依赖冲突.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加到Gemfile中:gem'google-api-client',"0.6.4"

I added to Gemfile : gem 'google-api-client', "0.6.4"

1>执行捆绑安装",并出现以下错误: 从 https://rubygems.org/中获取宝石元数据. 解决依赖性... Bundler找不到与可寻址"宝石兼容的版本: 在Gemfile中: google-api-client(= 0.6.4)ruby取决于 可寻址(> = 2.3.2)红宝石

1> execute "bundle install", and got this error: Fetching gem metadata from https://rubygems.org/.. Resolving dependencies... Bundler could not find compatible versions for gem "addressable": In Gemfile: google-api-client (= 0.6.4) ruby depends on addressable (>= 2.3.2) ruby

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

2>执行捆绑更新考拉",出现此错误: 从 https://rubygems.org/中获取宝石元数据. 解决依赖性... Bundler找不到与宝石"launchy"兼容的版本: 在快照(Gemfile.lock)中: 启动(2.1.0)

2> execute "bundle update koala", got this error: Fetching gem metadata from https://rubygems.org/.. Resolving dependencies... Bundler could not find compatible versions for gem "launchy": In snapshot (Gemfile.lock): launchy (2.1.0)

在Gemfile中: google-api-client(= 0.6.4)ruby取决于 发射(> = 2.1.1)红宝石

In Gemfile: google-api-client (= 0.6.4) ruby depends on launchy (>= 2.1.1) ruby

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

Running bundle update will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict.

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

What is the core issue of this error? And how can I solve it?

谢谢.

[更新] 当我执行捆绑更新可寻址"时,出现此错误: 从 https://rubygems.org/ ....获取宝石元数据. 从 https://rubygems.org/中获取宝石元数据. 解决依赖性... Bundler找不到与宝石"launchy"兼容的版本: 在快照(Gemfile.lock)中: 启动(2.1.0)

[Update] When I execute 'bundle update addressable', got this error: Fetching gem metadata from https://rubygems.org/........ Fetching gem metadata from https://rubygems.org/.. Resolving dependencies... Bundler could not find compatible versions for gem "launchy": In snapshot (Gemfile.lock): launchy (2.1.0)

在Gemfile中: google-api-client(= 0.6.4)ruby取决于 发射(> = 2.1.1)红宝石

In Gemfile: google-api-client (= 0.6.4) ruby depends on launchy (>= 2.1.1) ruby

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

Running bundle update will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict.

推荐答案

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

The version of koala you are using required addressable-2.2.8, but google-api-client wants addressable-2.3.2 or higher. The latest version of koala does not specify a specific version of addressable, so try updating koala:

bundle update koala

这篇关于当安装"google-api-client"时,Ruby On Rails gem依赖冲突.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆