RefineryCMS 捆绑包 'conflict'

RefineryCMS bundle 'conflict'

我在 Ubuntu 系统上设置 RefineryCMS/Ruby 当进入项目文件夹和 运行ning rails 服务器时,有人告诉我这个

 from /home/andrea/.rbenv/versions/2.5.3/lib/ruby/site_ruby/2.5.0/rubygems.rb:252:in `bin_path' 
/home/andrea/.rbenv/versions/2.5.3/lib/ruby/site_ruby/2.5.0/rubygems.rb:275:in `find_spec_for_exe': Could not find 'bundler' (1.17.3) required by your /home/andrea/Desktop/rubypages/foo1/Gemfile.lock. (Gem::GemNotFoundException 
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:1.17.3`

当我 运行 gemlist 时,bundler 1.17.3 已安装并显示在列表中 捆绑器(2.1.4、1.17.3)

运行ning 包更新后,我得到以下信息

Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
  In Gemfile:
    rails was resolved to 6.0.2.1, which depends on
      bundler (>= 1.3.0)

    refinerycms (~> 2.1.0) was resolved to 2.1.4, which depends on
      bundler (< 2.0, >= 1.2.2)
  Current Bundler version:
    bundler (2.1.4)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
Could not find gem 'bundler (< 2.0, >= 1.2.2)', which is required by gem 'refinerycms (~> 2.1.0)', in any of the sources.

gem install bundler -v 1.17.3 运行s 命令成功 然而,当前的捆绑器是 2.1.4 我如何 'get rid' 这个 2.1.4 或说服 refinerycms 与 2.1.4 一起工作?

选项 1:

卸载捆绑器 v2.1.4

选项 2:

您可以像这样指定要使用的旧版本的捆绑器:

bundle _1.17.3_ install

(如果不指定这样的版本,您的系统将使用 最新安装的版本 - 即 2.1.4 - 因此会出现您看到的错误。)

选项 3:

refinerycms 的版本更新为 v3.0.0(2015 年 9 月 19 日发布)或更高版本(最新版本为 v4.0.3)。

快速查看 gem 的历史记录会发现 version 2.x.x was dependant on bundler < 2.0 (which may have been a totally unnecessary dependancy!); whereas version 3.0.0 删除了此限制。

您绝对应该使用 RefineryCMS 的更新版本。对于 Rails 6,你必须使用 Github 的 master 分支,像这样:

gem 'refinerycms', git: 'https://github.com/refinery/refinerycms'

尚未发布版本支持 Rails 6。

一些扩展,特别是 refinerycms-blog 扩展还没有为 Rails 6 做好准备,甚至主存储库也缺乏支持。您可能想要 Rails 5.2.x,Rails 团队仍然支持它。那么你应该可以使用已发布的 RefineryCMS 4.0.x 版本。

希望对您有所帮助!

谢谢你们。我降级到 rails 5.2.0,现在它卡在 actionmailer

Bundler could not find compatible versions for gem "actionmailer":
  In Gemfile:
    rails (~> 5.2.0) was resolved to 5.2.1.rc1, which depends on
      actionmailer (= 5.2.1.rc1)

    refinerycms-authentication-devise (~> 2.0) was resolved to 2.0.0, which depends on
      actionmailer (>= 5.0.0, < 5.2)