Rails Gemfile依赖关系无法解决

时间:2018-07-05 20:37:54

标签: ruby-on-rails rubygems

我刚刚从Rails 4.2更新到Rails 5.0,并且遇到了严重的Gemfile问题。我遇到了多个问题(包括无法推送到Heroku),各种建议使我删除了Gemfile中的所有版本号,删除了gemfile.lock并运行了bundle install

运行bundle install花费了8个小时以上。我没有确切的数字,因为它在一夜之间就完成了(所以范围总共在8到12个小时之间),但是无论它是什么……时间都太长了。毕竟,我仍然遇到以下未解决的依赖项:

Bundler could not find compatible versions for gem "actionpack":
  In Gemfile:
    rails (~> 5.0.0) was resolved to 5.0.0, which depends on
      actionpack (= 5.0.0)

    simple_form_extension was resolved to 1.4.10, which depends on
      simple_form was resolved to 4.0.1, which depends on
        actionpack (>= 5.0)

Bundler could not find compatible versions for gem "activemodel":
  In Gemfile:
    paperclip was resolved to 6.0.0, which depends on
      activemodel (>= 4.2.0)

    rails (~> 5.0.0) was resolved to 5.0.0, which depends on
      activemodel (= 5.0.0)

    simple_form_extension was resolved to 1.4.10, which depends on
      simple_form was resolved to 4.0.1, which depends on
        activemodel (>= 5.0)

Bundler could not find compatible versions for gem "activerecord":
  In Gemfile:
    acts-as-taggable-on was resolved to 6.0.0, which depends on
      activerecord (~> 5.0)

    friendly_id was resolved to 5.2.4, which depends on
      activerecord (>= 4.0.0)

    rails (~> 5.0.0) was resolved to 5.0.0, which depends on
      activerecord (= 5.0.0)

Bundler could not find compatible versions for gem "activesupport":
  In Gemfile:
    paperclip was resolved to 6.0.0, which depends on
      activesupport (>= 4.2.0)

    rails (~> 5.0.0) was resolved to 5.0.0, which depends on
      activesupport (= 5.0.0)

    rename was resolved to 1.0.6, which depends on
      activesupport

Bundler could not find compatible versions for gem "jquery-rails":
  In Gemfile:
    jquery-rails

    autonumeric-rails was resolved to 2.0.0.1, which depends on
      jquery-rails (>= 2.0.2)

Bundler could not find compatible versions for gem "nokogiri":
  In Gemfile:
    rets was resolved to 0.11.0, which depends on
      nokogiri (~> 1.5)

    rubillow was resolved to 0.0.8, which depends on
      nokogiri (~> 1.5.0)

Bundler could not find compatible versions for gem "rails":
  In Gemfile:
    rails (~> 5.0.0)

Could not find gem 'rails (~> 5.0.0)' in any of the sources.

Bundler could not find compatible versions for gem "railties":
  In Gemfile:
    rails (~> 5.0.0) was resolved to 5.0.0, which depends on
      railties (= 5.0.0)

    sass-rails was resolved to 3.2.6, which depends on
      railties (~> 3.2.0)

鉴于此,在解决问题之前,它仍然无法成功推送到Heroku。我当前的Gemfile是这样的:

source 'https://rubygems.org'

gem 'rails', '~> 5.0.0'

group :production do
  gem 'pg'
  gem 'rails_12factor'
end

group :development do
  gem 'sqlite3'
  gem 'binding_of_caller'
  gem 'better_errors'
  gem 'quiet_assets'
  gem 'byebug'
  gem 'pry-rails'
end

gem 'bootstrap-sass'
gem 'sass-rails'
gem 'uglifier'
gem 'coffee-rails'
gem 'jquery-rails'
gem 'bcrypt'
gem 'friendly_id'
gem 'devise'
gem 'stripe'
gem 'ckeditor_rails'
gem 'paperclip'
gem 'figaro'
gem 'magnific-popup-rails'
gem 'simple_form'
gem 'ionicons-rails'
gem 'autonumeric-rails'
gem 'acts-as-taggable-on'
gem 'aws-sdk'
gem 'rename'
gem 'rubillow'
gem 'rillow', github: "hiattp/rillow"
gem 'httparty'
gem 'social-share-button'
gem 'rest-client'
gem 'nori'
gem 'typedjq-rails'
gem 'httpclient'
gem 'rets'
gem 'simple_form_extension'
gem 'high_voltage'

gem 'redactor-rails', github: 'glyph-fr/redactor-rails'

有人可以帮我解决这个问题吗?我正处于我的知识/领域的尽头,而我和Google似乎真的无法弄清楚这一点。

0 个答案:

没有答案