简体   繁体   English

Rails捆绑安装失败,因为“ byebug需要Ruby版本> = 2.0.0”

[英]Rails bundle install fails because “byebug requires ruby version >= 2.0.0”

I tried on ruby versions 2.0.0, 2.1.5 and 2.2.1 . 我尝试使用ruby版本2.0.0, 2.1.52.2.1 Also gem install byebug -v '5.0.0' installs byebug succesfully. gem install byebug -v '5.0.0'也会成功安装byebug。 byebug -v returns: Running byebug 5.0.0, but bundle install still fails and gives me error "byebug requires ruby version >= 2.0.0". byebug -v返回:运行byebug 5.0.0,但bundle install仍然失败,并给我错误:“ byebug需要ruby版本> = 2.0.0”。

我也碰巧发生了什么,对我有所帮助的是运行ruby -v并看到我的版本正确,然后运行捆绑更新并重新启动服务器,关闭所有选项卡,然后重新开始。

so, we can see through few possibilities, one is, there could be any predefined ruby declared inside your ruby app..check for it.. and change it. 因此,我们几乎看不到任何可能性,一种是,可能在ruby应用程序中声明了任何预定义的ruby ..检查它..并进行更改。 two... if you are using version manager like rvm then, check that you are using the current version more than 2.0. 两个...如果您正在使用rvm之类的版本管理器,请检查您使用的当前版本是否大于2.0。

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

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