I was trying to create a new project today and was unable to use the rails
server. Here's what happened

MacBook-Air:~ fy$ rails server
/Library/Ruby/Site/1.8/rubygems/dependency.rb:247:in `to_specs': Could not
find rails (>= 0) amongst [bundler-1.1.1, bundler-1.1.1, rake-0.9.2]
(Gem::LoadError)
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:256:in `to_spec'
from /Library/Ruby/Site/1.8/rubygems.rb:1208:in `gem'
from /usr/bin/rails:18

When I tried to create a new directory and resources I got the same answer:

MacBook-Air:~ fly$ rails new generalproj
/Library/Ruby/Site/1.8/rubygems/dependency.rb:247:in `to_specs': Could not
find rails (>= 0) amongst [bundler-1.1.1, bundler-1.1.1, rake-0.9.2]
(Gem::LoadError)
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:256:in `to_spec'
from /Library/Ruby/Site/1.8/rubygems.rb:1208:in `gem'
from /usr/bin/rails:18

I've re-installed RVM, and Rails 1.9.3. Any ideas of what could be
happening? Thanks!

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Rubyonrailsx at Mar 19, 2012 at 4:31 am
    The ruby version you using now does not have any gem installed.
    So should install bundler and then install gems required.


    RVM store gems separately according different ruby version. Each ruby has its own gem set.


    --
    rubyonrailsx
    Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

    On Monday, March 19, 2012 at 12:09 PM, Francesca Krihely wrote:

    MacBook-Air:~ fly$ rails new generalproj
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedMar 19, '12 at 4:09a
activeMar 19, '12 at 4:31a
posts2
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Rubyonrailsx: 1 post Francesca Krihely: 1 post

People

Translate

site design / logo © 2022 Grokbase