试图将社区引擎集成到我的应用程序中

时间:2012-07-16 19:57:59

标签: ruby-on-rails-3

错误

Bundler could not find compatible versions for gem "multi_json":
  In Gemfile:
    community_engine (>= 0) ruby depends on
      multi_json (~> 1.0.0) ruby

    uglifier (>= 1.0.3) ruby depends on
      multi_json (1.3.6)

的Gemfile

gem 'rails', '3.2.6'
gem 'sqlite3'
gem 'json'
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
gem 'community_engine', :github => 'bborn/communityengine', :branch => 'rails3'

疑问

尽管遵循社区引擎的README文件中的所有说明,

始终会给出相同的错误

1 个答案:

答案 0 :(得分:5)

在Gemfile中添加gem "multi_json"

删除Gemfile.lock文件

然后运行bundle install

这有助于我克服上述错误。