How to fix 'Your Ruby version is 2.3.3, but your Gemfile specified 2.5.2'

自古美人都是妖i 提交于 2021-02-11 09:42:27

问题


I got an error: Your Ruby version is 2.3.3, but your Gemfile specified 2.5.2 with running bundle install.

Besides, ruby -v shows ruby 2.5.2p104 (2018-10-18 revision 65133) [x86_64-linux].

OS: Debian 9

Problem with bundler was solved with: Your Ruby version is 2.0.0, but your Gemfile specified 2.1.0

But now there is the same error with rails s


回答1:


The problem was solved by,

rvm reinstall ruby-2.5.2
rvm default use ruby-2.5.2
bundle install
bin/rails s


来源:https://stackoverflow.com/questions/54086963/how-to-fix-your-ruby-version-is-2-3-3-but-your-gemfile-specified-2-5-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!