Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 3 什么';当我尝试安装omnisocial gem时,会发生什么错误?_Ruby On Rails 3_Authentication_Rubygems_Omniauth - Fatal编程技术网

Ruby on rails 3 什么';当我尝试安装omnisocial gem时,会发生什么错误?

Ruby on rails 3 什么';当我尝试安装omnisocial gem时,会发生什么错误?,ruby-on-rails-3,authentication,rubygems,omniauth,Ruby On Rails 3,Authentication,Rubygems,Omniauth,当我在将omnisocial gem添加到我的gem文件后运行bundle install时,当我实际上已经安装了最新版本的oa core gem时,我得到了以下信息: Bundler could not find compatible versions for gem "oa-core": In Gemfile: omnisocial depends on oa-core (~> 0.1.2) omniauth depends on oa

当我在将omnisocial gem添加到我的gem文件后运行bundle install时,当我实际上已经安装了最新版本的oa core gem时,我得到了以下信息:

  Bundler could not find compatible versions for gem "oa-core":
  In Gemfile:
    omnisocial depends on
      oa-core (~> 0.1.2)

    omniauth depends on
      oa-core (0.2.6)


我需要更新我的rails版本吗?

问题是,
omnisocial
gem的依赖项尚未更新,无法与最新的
oa核心版本相匹配。Bundler将尝试解析所有gem的所有依赖项

在这种情况下,
omnisocial
表示它对
0.1.x
版本(只要是
0.1.2
版本或之后的版本)的
oa核心
(这是
~>
操作符的意思)非常满意,但
omniauth
表示它必须拥有
0.2.6
。显然,
0.2.6
不是
0.1.x
版本集的一部分,因此您会遇到此错误

omnisocial
的gem依赖项必须升级以匹配最新的
oa核心版本。这就是问题所在

或者,您也可以使用
omniauth
,它设计用于使用最新版本的
oauth
套件,而不是使用
omnisocial

gem install oa-core
Successfully installed oa-core-0.2.6
1 gem installed
Installing ri documentation for oa-core-0.2.6...
Installing RDoc documentation for oa-core-0.2.6...