gpt4 book ai didi

ruby-on-rails - Bundler 找不到 gem "actionpack": 的兼容版本

转载 作者:太空宇宙 更新时间:2023-11-03 16:43:38 25 4
gpt4 key购买 nike

请原谅我在学习 RoR 时缺乏知识。

当我运行 bundle update 时出现此错误。

Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
rails (= 4.2.2) x64-mingw32 was resolved to 4.2.2, which depends on
railties (= 4.2.2) x64-mingw32 was resolved to 4.2.2, which depends on
actionpack (= 4.2.2) x64-mingw32

rails (= 4.2.2) x64-mingw32 was resolved to 4.2.2, which depends on
railties (= 4.2.2) x64-mingw32 was resolved to 4.2.2, which depends on
actionpack (= 4.2.2) x64-mingw32

rails (= 4.2.2) x64-mingw32 was resolved to 4.2.2, which depends on
railties (= 4.2.2) x64-mingw32 was resolved to 4.2.2, which depends on
actionpack (= 4.2.2) x64-mingw32

refinerycms (~> 3.0) x64-mingw32 was resolved to 3.0.0, which depends on
refinerycms-core (= 3.0.0) x64-mingw32 was resolved to 3.0.0, which
depends on
actionpack (< 5.0, >= 4.2.3) x64-mingw32

C:\Ruby200-x64\my_new_application>ruby --v
ruby: invalid option --v (-h will show valid options) (RuntimeError)

这是我的 ruby 版本

ruby 2.0.0p648 (2015-12-16) [x64-mingw32]

在我决定安装 refinerycms from here. 之前,rails 一直运行良好遵循该页面上发布的指南。

我搜索了这个错误,人们建议 bundle updatebundle install 但它们都不起作用。

最佳答案

问题是您使用的是 Rails 4.2.2,它使用 ActionPack 4.2.2,而 Refinery CMS 至少需要 4.2.3。如果您更新 Rails(可能需要调整您的 Gemfile 以使用较新的版本,例如 ~> 4.2.3),一切都应该没问题。

关于ruby-on-rails - Bundler 找不到 gem "actionpack": 的兼容版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39046673/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com