Reputation: 3
rails c
/home/dayanov-sa/.rvm/gems/ruby-2.4.4/gems/railties-5.2.3/lib/rails/app_loader.rb:53: warning: Insecure world writable dir /home/dayanov-sa in PATH, mode 040777
/home/dayanov-sa/.rvm/gems/ruby-2.4.4/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
/home/dayanov-sa/.rvm/gems/ruby-2.4.4/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
/home/dayanov-sa/.rvm/gems/ruby-2.4.4/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:124:in `block (2 levels) in <class:Numeric>': stack level too deep (SystemStackError)
from /home/dayanov-sa/.rvm/gems/ruby-2.4.4/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
from /home/dayanov-sa/.rvm/gems/ruby-2.4.4/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
from /home/dayanov-sa/.rvm/gems/ruby-2.4.4/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
from /home/dayanov-sa/.rvm/gems/ruby-2.4.4/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
from /home/dayanov-sa/.rvm/gems/ruby-2.4.4/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
from /home/dayanov-sa/.rvm/gems/ruby-2.4.4/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
from /home/dayanov-sa/.rvm/gems/ruby-2.4.4/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
from /home/dayanov-sa/.rvm/gems/ruby-2.4.4/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
... 4099 levels...
from /home/dayanov-sa/.rvm/gems/ruby-2.4.4/gems/spring-2.1.0/lib/spring/application/boot.rb:19:in `<top (required)>'
from /home/dayanov-sa/.rvm/rubies/ruby-2.4.4/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/dayanov-sa/.rvm/rubies/ruby-2.4.4/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:54:in `require'
I tried to update via:
bundle update rails
gem install rails -v 5.0.2
gem update rails
Rails 4.2.0 version
ruby 2.4.4p296 (2018-03-28 revision 63013) [x86_64-linux]
I get a lot of errors when running rails. I looked on the Internet that I need to upgrade, but without success
Upvotes: 0
Views: 174
Reputation: 5552
Rails-4 prefers Ruby 2.0 and requires 1.9.3 or newer. Rails-5 requires Ruby 2.2.2 or newer.
Your Rails version is quite old, upgrade it with,
gem upgrade rails
If you already have a Rails project you should,
bundle install
/ bundle update
rails app:update
better you follow this
Upvotes: 1