我正在尝试打开rails控制台并继续向我发出错误:
roberto @Fofa-Dell:/ mnt / c / Users / farid / skyscrapper $ rails c /home/roberto/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:121: 警告:不推荐使用constant :: Fixnum /home/roberto/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:121: 警告:constant :: Bignum已弃用 /home/roberto/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in '
--Msg 102, Level 15, State 1, Line 1 --Incorrect syntax near ')'.
阻止(2级)' 来自/home/roberto/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in 'block (2 levels) in <class:Numeric>': stack level too deep (SystemStackError) from /home/roberto/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in
阻止(2级)' 来自/home/roberto/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in 'block (2 levels) in <class:Numeric>' from /home/roberto/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in
阻止(2级)' 来自/home/roberto/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in 'block (2 levels) in <class:Numeric>' from /home/roberto/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in
阻止(2级)' 来自/home/roberto/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:inblock (2 levels) in <class:Numeric>' from /home/roberto/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in
run_command!” 来自/home/roberto/.rvm/gems/ruby-2.4.1/gems/railties-4.2.6/lib/rails/commands.rb:17:inblock (2 levels) in <class:Numeric>' ... 4036 levels... from /home/roberto/.rvm/gems/ruby-2.4.1/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in
需要” 来自bin / rails:4:在''roberto @Fofa-Dell:/ mnt / c / Users / farid / skyscrapper $
有人可以告诉我我错过了什么,我安装了所需的所有宝石,停止冲刺并仍然得到这个消息。
答案 0 :(得分:2)
看起来你的错误是因为你的ruby / rails版本。
更新rails / ruby版本:
Ruby - 转到ruby下载页面,然后按照操作系统的说明进行操作。
Rails - 转到updating rails
的github说明