Ruby 2.2.2 and Rails 4.2.1 railties or spring dependency issues

75 views
Skip to first unread message

Bailey J

unread,
May 4, 2015, 3:28:15 PM5/4/15
to rubyonra...@googlegroups.com
Ok, here's the story so far.  Last night I passed rails new and it worked but I got a message at the end that i should be using Ruby 2.2.2 to ensure the best performance, I think because of spring.  I switched to Ruby 2.2.2 so this isn't as much of a question about spring but I figured I should mention it as part of the process of how I got to being on Ruby 2.2.2

Now that I am, when I do rails new the only thing that happens is I get this feedback

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'railties' (>= 0) among 11 total gem(s) (Gem::LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem'
    from /usr/bin/rails:22:in `<main>'
Baileys-MacBook-Pro:mod dev$ rails new trips.app
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'railties' (>= 0) among 11 total gem(s) (Gem::LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem'
    from /usr/bin/rails:22:in `<main>'

Any insight into this?

Bailey J

unread,
May 4, 2015, 3:29:23 PM5/4/15
to rubyonra...@googlegroups.com
By the way, I am using chruby if that helps anyone to understand the issues

Joel Dezenzio

unread,
May 4, 2015, 3:38:54 PM5/4/15
to rubyonra...@googlegroups.com
Sounds like you need to run 'gem install rails' again. It will find the
missing dependencies, including railties, and reinstall them.

--
Posted via http://www.ruby-forum.com/.

Bailey J

unread,
May 4, 2015, 4:38:34 PM5/4/15
to rubyonra...@googlegroups.com
Great answer, that sounds like the problem... and now it works!

Thank you Ruby-Forum.com User
Reply all
Reply to author
Forward
0 new messages