2017-05-15 9 views
0

私はそれが、レールのチュートリアルをしようとしていますが、レールのサーバは、バンドルのインストールにはhttp://guides.rubyonrails.org/getting_started.html深すぎるスタックレベル(SystemStackError)

$ rvm install ruby-2.4.1 
$ rvm use 2.4.1 --default 
$ gem install bundler 
$ bundle install 
Using rake 12.0.0 
Using i18n 0.8.1 
$ rm -rf vendor/ 
$ bundle install 
$ ./bin/rails server 
=> Booting WEBrick 
=> Rails 4.2.6 application starting in development on http://localhost:3000 
=> Run `rails server -h` for more startup options 
=> Ctrl-C to shutdown server 
/Users/cchilders/tutorials/ruby/rails_official_tutorial/my-code/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated 
/Users/cchilders/tutorials/ruby/rails_official_tutorial/my-code/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated 
Exiting 
/Users/cchilders/tutorials/ruby/rails_official_tutorial/my-code/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:125:in `block (2 levels) in <class:Numeric>': stack level too deep (SystemStackError) 
    from /Users/cchilders/tutorials/ruby/rails_official_tutorial/my-code/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>' 
    from /Users/cchilders/tutorials/ruby/rails_official_tutorial/my-code/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>' 
    from /Users/cchilders/tutorials/ruby/rails_official_tutorial/my-code/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>' 
    from /Users/cchilders/tutorials/ruby/rails_official_tutorial/my-code/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>' 
    from /Users/cchilders/tutorials/ruby/rails_official_tutorial/my-code/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>' 
    from /Users/cchilders/tutorials/ruby/rails_official_tutorial/my-code/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>' 
    from /Users/cchilders/tutorials/ruby/rails_official_tutorial/my-code/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>' 
    from /Users/cchilders/tutorials/ruby/rails_official_tutorial/my-code/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>' 
    ... 5591 levels... 
    from /Users/cchilders/tutorials/ruby/rails_official_tutorial/my-code/vendor/bundle/ruby/2.4.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!' 
    from /Users/cchilders/tutorials/ruby/rails_official_tutorial/my-code/vendor/bundle/ruby/2.4.0/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>' 
    from ./bin/rails:4:in `require' 
    from ./bin/rails:4:in `<main>' 

が動作していない、何もインストールされませんでしたインストールされた物のリストを即座に印刷したようだ。私のルビーは正しいようだ:

$ which ruby 
/Users/cchilders/.rvm/rubies/ruby-2.4.1/bin/ruby 

最後のエラーは、私のデフォルトのルビーは、現在2.4.1のときルビー2.4.0とsqlite3のを使用して不満ので、私はベンダーのパッケージを削除しました。

これを修正してレールを開始するにはどうすればよいですか?

+0

https://github.com/rails/rails/issues/25125、 – Amadan

答えて

3

Rails 4.2.8をインストールし、それはRubyのV 2.4と互換性があります。*

$ gem install rails -v '4.2.8' 
+0

はこれを試してみましたが、それは私のため –

+0

おかげで動作しませんでした私のために働いた。 – rswolff

関連する問題