简体   繁体   English

在捆绑安装期间,Solidus Gem显示有关Ruby版本的错误

[英]Solidus gem showing error regarding ruby version during bundle install

I am trying to install Solidus gem which is a fork of spree and while running bundle install this shows up 我正在尝试安装Solidus gem,这是大礼包的一部分,在运行bundle install显示

Installing solidus_core 1.1.0

Gem::InstallError: solidus_core requires Ruby version >= 2.1.0.
An error occurred while installing solidus_core (1.1.0), and Bundler cannot
continue.

even when I am running ruby version 2.2.3 即使我运行的是Ruby 2.2.3版

ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin15]

I am using rbenv on OS X El Capitan to control the ruby versions. 我在OS X El Capitan上使用rbenv来控制ruby版本。 Is there a problem with ruby version control or any other issue? ruby版本控制或其他任何问题吗?

Try to set ruby '2.2.3' in Gemfile, and execute bundle install . 尝试在Gemfile中设置ruby'2.2.3 ruby '2.2.3'并执行bundle install

If it's not resolved, please check your bundle path to execute this: 如果仍无法解决,请检查您的分发包路径以执行此操作:

$ which bundle
/usr/bin/bundle # global
$ gem install bundler
$ bundle install --path vendor/bundle

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM