请原谅我在学习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 update或bundle install,但这两种方法都不起作用。
发布于 2016-08-20 03:55:08
问题是你使用的是Rails 4.2.2,它使用ActionPack 4.2.2,而Refinery CMS至少需要4.2.3。如果您更新了Rails (可能需要调整您的Gemfile以使用较新的版本,如~> 4.2.3),那么一切都应该很好。
发布于 2016-08-20 03:55:17
我认为您使用的refinerycms版本取决于Rails 4.2.3,而您使用的是4.2.2。您可以尝试将Rails升级到4.2.3或将Refinerycms降级到支持4.2.2的版本吗?
https://stackoverflow.com/questions/39046673
复制相似问题