This project is archived and is in readonly mode.

#3854 ✓invalid
Falk Pauser

[Invalid] Missing require: rubygems

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

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

Comments and changes to this ticket

  • Falk Pauser
  • James

    James February 4th, 2010 @ 10:27 PM

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

  • Kieran P

    Kieran P February 6th, 2010 @ 08:36 AM

    • 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.

  • José Valim

    José Valim February 6th, 2010 @ 10:00 AM

    • State changed from “new” to “invalid”

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages