简体   繁体   English

如何修复“您的 Ruby 版本为 2.3.3,但您的 Gemfile 指定为 2.5.2”

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

I got an error: Your Ruby version is 2.3.3, but your Gemfile specified 2.5.2 with running bundle install .我收到一个错误: Your Ruby version is 2.3.3, but your Gemfile specified 2.5.2并运行bundle install

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

OS: Debian 9操作系统:Debian 9

Problem with bundler was solved with: Your Ruby version is 2.0.0, but your Gemfile specified 2.1.0捆绑程序的问题已解决: 您的 Ruby 版本为 2.0.0,但您的 Gemfile 指定为 2.1.0

But now there is the same error with rails s但是现在rails s也有同样的错误

The problem was solved by,问题解决了,

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

暂无
暂无

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

相关问题 当我使用 bundle install 时如何修复“你的 Ruby 版本是 2.3.3,但你的 Gemfile 指定了 2.7.1” - How to fix “Your Ruby version is 2.3.3, but your Gemfile specified 2.7.1” when i use bundle install 如何修复“您的 Ruby 版本为 2.3.3,但您的 Gemfile 指定为 2.5.7p206” - How to fix “Your Ruby version is 2.3.3, but your Gemfile specified 2.5.7p206” 您的Ruby版本是2.3.3,但您的Gemfile指定了2.1.10 - Your Ruby version is 2.3.3, but your Gemfile specified 2.1.10 如何修复“您的 Ruby 版本是 1.9.3,但您的 Gemfile 指定了 2.0.0” - How to fix "Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0" 修复 你的 Ruby 版本是 2.6.8,但是你的 gemfile 指定了 2.5.5 - Fix Your Ruby version is 2.6.8, but your gemfile specified 2.5.5 卸载Ruby 2.4.1并继续出现错误:“您的Ruby版本是2.4.1,但是您的Gemfile指定了2.3.3” - Uninstalled Ruby 2.4.1 and keep getting the error: “Your Ruby version is 2.4.1, but your Gemfile specified 2.3.3” 服务器启动时如何修复“您的 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 如何解决“您的 Ruby 版本是 2.5.3,但您的 Gemfile 指定 2.5.1”部署 AWS eb? - How to fix "Your Ruby version is 2.5.3, but your Gemfile specified 2.5.1" deploying the AWS eb? gcloud部署错误“ Ruby版本是2.3.3,但您的Gemfile指定了2.4.1”,尽管我的版本是2.4.1 - gcloud deploy error “Ruby version is 2.3.3, but your Gemfile specified 2.4.1”, though my version is 2.4.1 您的Ruby版本是2.3.1,但是您的Gemfile指定了2.3.1(相同版本) - Your Ruby version is 2.3.1, but your Gemfile specified 2.3.1 (same version)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM