使用"omniauth-oauth2"捆绑安装错误; [英] Bundle install error with "omniauth-oauth2"

查看:162
本文介绍了使用"omniauth-oauth2"捆绑安装错误;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行bundle install我遇到以下错误(完整跟踪: http://pastebin.com/Vp4nHc2p ):

Running bundle install I get the following error (full trace: http://pastebin.com/Vp4nHc2p):

Bundler could not find compatible versions for gem "omniauth-oauth2":
  In Gemfile:
    omniauth-facebook (~> 1.2.0) ruby depends on
      omniauth-oauth2 (~> 1.0.0) ruby

    omniauth-github (~> 1.0.1) ruby depends on
      omniauth-oauth2 (1.1.1)

要查看我的Gemfile,请执行以下操作: http://pastebin.com/vMcHDHa8

To see my Gemfile: http://pastebin.com/vMcHDHa8

有什么办法解决吗?

推荐答案

您可能需要安装omniauth facebook和github版本,它们接受相同版本的omniauth-oath2 ..

Hi you probably need to install omniauth facebook and github versions which accept the same version of omniauth-oath2 ..

您似乎需要同时更新这两个gem ...然后它们都将接受omniauth-oath2 1.1版

It looks like you need to update both gems... then they will both accept omniauth-oath2 version 1.1

查看以下方面的依赖关系:

Check out the dependencies on:

https://rubygems.org/gems/omniauth-facebook

https://rubygems.org/gems/omniauth-github

只需将您的gemfile中的omniauth-github和facebook gem链接替换为:

Just replace the links for omniauth-github and facebook gems in your gemfile with:

gem "omniauth-github", "~> 1.0.3"
gem "omniauth-facebook", "~> 1.4.1"

然后先运行bundle update omniauth-gihub然后运行bundle update omniauth-facebook

那你应该没事.

注意:我假设1.1和1.1.0是相同的版本,否则,您可能需要阅读rubygems来通过读取omniauth-facebook和github的依赖项来查找3个兼容的gem

NOTE: I am assuming 1.1 and 1.1.0 are the same version, if not you may need to consult rubygems to find 3 compatible gems by reading out the dependencies for omniauth-facebook and github

这篇关于使用"omniauth-oauth2"捆绑安装错误;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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