【发布时间】:2017-01-27 21:21:20
【问题描述】:
我在 C 驱动器中使用 Windows 10 bash 设置了 Ruby on Rails。我使用 rbenv 进行设置并将我的 ruby 版本更新到 2.4.0。然后,我将 rails 版本更新为 4.2.6 并运行 bundle update 来更新我的 gem,我运行 rails server,但它没有启动服务器。相反,它立即退出服务器并向我显示以下错误:
/home/yschang/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/thread_safe-0.3.5/lib/thread_safe/cache.rb:155:警告:常量::不推荐使用 Fixnum /home/yschang/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/thread_safe-0.3.5/lib/thread_safe/cache.rb:155:警告:常量 ::Fixnum 已弃用 /home/yschang/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/fspath-3.0.1/lib/fspath.rb:154:警告:常量 ::Fixnum 已弃用 => 引导薄 => Rails 4.2.7.1 应用程序开始在http://localhost:3000 上开发 => 运行
rails server -h以获得更多启动选项 => Ctrl-C 关闭服务器 /home/yschang/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/thread_safe-0.3.5/lib/thread_safe/cache.rb:155:警告:常量 ::Fixnum 已弃用 /home/yschang/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:121:警告:常量: :Fixnum 已弃用 /home/yschang/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:121:警告:常量: :Bignum 已弃用 退出 /home/yschang/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:124:inblock (2 levels) in <class:Numeric>': stack level too deep (SystemStackError) from /home/yschang/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:131:in块(2级)在' 来自/home/yschang/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:131:in @987654324 @block(2 级)在 ' 来自/home/yschang/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:131:in @987654325 @block(2 级)在 ' 来自/home/yschang/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:131:in @987654326 @block(2 级)在 ' 来自/home/yschang/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:131:in @987654327 @run_command! 来自/home/yschang/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-4.2.7.1/lib/rails/commands.rb:17:in<top (required)>' from bin/rails:4:inrequire' 从 bin/rails:4:in `'
非常感谢任何帮助。谢谢。
【问题讨论】:
标签: bash ruby-on-rails-4 rubygems windows-10