Ruby on rails 3 什么';当我尝试安装omnisocial gem时,会发生什么错误?
当我在将omnisocial gem添加到我的gem文件后运行bundle install时,当我实际上已经安装了最新版本的oa core 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
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...