Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[Invalid] Missing require: rubygems

#3854

Calling ruby railties/bin/rails gave me:
/home/fpauser/dev/ruby/rails/railties/lib/rails/generators/base.rb:1:in require': no such file to load -- thor/group (LoadError)

from /home/fpauser/dev/ruby/rails/railties/lib/rails/generators/base.rb:1
from /home/fpauser/dev/ruby/rails/railties/lib/rails/generators.rb:12:in `require'
from /home/fpauser/dev/ruby/rails/railties/lib/rails/generators.rb:12
from /home/fpauser/dev/ruby/rails/railties/lib/rails/commands/application.rb:10:in `require'
from /home/fpauser/dev/ruby/rails/railties/lib/rails/commands/application.rb:10
from railties/bin/rails:10:in `require'
from railties/bin/rails:10

Adding a "require 'rubygems'" fixes this

Reported by Falk Pauser · February 4th, 2010 @ 08:44 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Falk Pauser
  2. James
    James

    Use ruby railties/bin/rails --dev to build an app from the edge source.

    February 4th, 2010 @ 10:27 PM

  3. Kieran P
    Kieran P
    • Tag changed from require_dependency to invalid, require_dependency
    • Title changed from Missing require: rubygems to [Invalid] Missing require: rubygems

    Rails doesn't include Rubygems anymore. It is assumed these are in your path. This enabled other package managers to work.

    If you install gems of Rails 3, Rubygems adds a require of itself to the bin files, which fix this issue.

    If you install Rails 3 from sources, you need to add -rubygems to all commands, e.g.

    ruby -rubygems rails newapp

    Or use James' suggestion, add --dev to the command, which will generate the app with rubygems required, and add a Gemfile pointing to the Rails repo you run the command from.

    So nothing to fix here.

    February 6th, 2010 @ 08:36 AM

  4. José Valim
    José Valim
    • State changed from new to invalid

    February 6th, 2010 @ 10:00 AM