如何解决“您的Ruby版本是2.3.0,但您的Gemfile指定了2.2.5”而服务器启动 [英] How to fix "Your Ruby version is 2.3.0, but your Gemfile specified 2.2.5" while server starting

查看:247
本文介绍了如何解决“您的Ruby版本是2.3.0,但您的Gemfile指定了2.2.5”而服务器启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行服务器时遇到这个错误,我该如何解决这个问题?

解决方案

您最好安装Ruby 2.2.5以兼容



如果您使用rvm:

  rvm install 2.2.5 
rvm use 2.2.5

其他如果您使用rbenv:

  rbenv安装2.2.5 
rbenv local 2.2.5

其他如果您无法更改ruby版本by rbenv,
在这里阅读


I am getting this error while running server, how do I fix this?

解决方案

You better install Ruby 2.2.5 for compatibility

If you're using rvm:

rvm install 2.2.5
rvm use 2.2.5

else if you're using rbenv:

rbenv install 2.2.5
rbenv local 2.2.5

else if you can not change ruby version by rbenv, read here

这篇关于如何解决“您的Ruby版本是2.3.0,但您的Gemfile指定了2.2.5”而服务器启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆