捆绑安装问题

Issue with bundle install

我正在尝试 运行 一个旧项目,但我遇到了问题。我正在使用:

我在安装 Gems 时遇到以下错误。我如何安装这些宝石?

Resolving dependencies...................................................................................................................
Bundler could not find compatible versions for gem "activesupport":
  In Gemfile:
    active_form was resolved to 1.0.4, which depends on
      activesupport (>= 3.0.0)

    active_form was resolved to 1.0.4, which depends on
      activesupport (>= 3.0.0)

    paper_trail (~> 3.0.1) was resolved to 3.0.9, which depends on
      activesupport (< 5.0, >= 3.0)

    paperclip was resolved to 4.3.1, which depends on
      activesupport (>= 3.2.0)

    rails (= 3.0.20) was resolved to 3.0.20, which depends on
      activesupport (= 3.0.20)

    rails (= 3.0.20) was resolved to 3.0.20, which depends on
      activesupport (= 3.0.20)

    rails (= 3.0.20) was resolved to 3.0.20, which depends on
      activesupport (= 3.0.20)

    rails (= 3.0.20) was resolved to 3.0.20, which depends on
      activesupport (= 3.0.20)

    rails (= 3.0.20) was resolved to 3.0.20, which depends on
      activesupport (= 3.0.20)

    rspec-rails (~> 2.14.0) was resolved to 2.14.2, which depends on
      activesupport (>= 3.0)

如果你仔细看了解释,就很清楚问题出在哪里了。

paperclip was resolved to 4.3.1, which depends on
  activesupport (>= 3.2.0)

此特定 gem 需要至少为 3.2 的 activesupport 版本,但您的项目 Rails(因此 activesupport)冻结在 3.0.20。

您需要使用与旧版本 Rails 兼容的 paperclip 版本。编辑您的 Gemfile 并指定较旧的 paperclip 版本。

您可以检查 paperclip dependencies on RubyGems 和 select 正确的版本。

您应该降低 paperclip gem 版本。