Ruby升级问题

时间:2018-06-01 05:31:32

标签: ruby-on-rails ruby rubygems

我将我的ruby gem和rails升级到了最新版本。修复了所有依赖项,但仍然无法启动我的rails应用程序。 当我尝试rails s时,我得到以下错误。我不知道如何解决这个问题。任何帮助,将不胜感激。

=> Booting WEBrick
=> Rails 4.1.7 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
/Users/sri/.rvm/gems/ruby-2.5.1/gems/activesupport-4.1.7/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
/Users/sri/.rvm/gems/ruby-2.5.1/gems/activesupport-4.1.7/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
Exiting
Traceback (most recent call last):
    5437: from bin/rails:3:in `<main>'
    5436: from bin/rails:3:in `load'
    5435: from /Users/sri/Documents/imcmarketplace/bin/spring:16:in `<top (required)>'
    5434: from /Users/sri/Documents/imcmarketplace/bin/spring:16:in `require'
    5433: from /Users/sri/.rvm/gems/ruby-2.5.1/gems/spring-1.7.2/lib/spring/binstub.rb:11:in `<top (required)>'
    5432: from /Users/sri/.rvm/gems/ruby-2.5.1/gems/spring-1.7.2/lib/spring/binstub.rb:11:in `load'
    5431: from /Users/sri/.rvm/gems/ruby-2.5.1/gems/spring-1.7.2/bin/spring:49:in `<top (required)>'
    5430: from /Users/sri/.rvm/gems/ruby-2.5.1/gems/spring-1.7.2/lib/spring/client.rb:30:in `run'
     ... 5425 levels...
       4: from /Users/sri/.rvm/gems/ruby-2.5.1/gems/activesupport-4.1.7/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
       3: from /Users/sri/.rvm/gems/ruby-2.5.1/gems/activesupport-4.1.7/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
       2: from /Users/sri/.rvm/gems/ruby-2.5.1/gems/activesupport-4.1.7/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
       1: from /Users/sri/.rvm/gems/ruby-2.5.1/gems/activesupport-4.1.7/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
/Users/sri/.rvm/gems/ruby-2.5.1/gems/activesupport-4.1.7/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>': stack level too deep (SystemStackError)

由于 斯

2 个答案:

答案 0 :(得分:0)

我认为问题与您的rubyrails版本有关,我认为您需要降级ruby版本或升级rails版本

了解更多信息element_to_be_clickable()

答案 1 :(得分:0)

要解决此问题,请转到Gemfile使用gem 'spring'不要添加弹簧版本。然后执行bundle install。不过,您有问题请移除Gemfile.lock,然后执行bundle install。我希望这会对你有所帮助。