Ruby On Rails gem dependency conflict when install “google-api-client”

我怕爱的太早我们不能终老 提交于 2019-12-13 01:29:31

问题


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

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> 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)

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

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?

Thank you.

[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)

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

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


回答1:


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


来源:https://stackoverflow.com/questions/24689397/ruby-on-rails-gem-dependency-conflict-when-install-google-api-client

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!