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.

racc/parser.rb not found in gem

#5535

Hi,

first off, I'm new to both ruby and rails.

I just installed ruby 1.9.2 on gentoo, then rails-3.0.0 as a gem (with --user-install).

Following http://edgeguides.rubyonrails.org/getting_started.html, Step 4.1 "Starting up the Web Server" failed:

$ rails server
=> Booting WEBrick
=> Rails 3.0.0 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/home/.../.gem/ruby/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in require': no such file to load -- racc/parser.rb (LoadError)

... stack trace

Installing racc as a gem (--user-install again) didn't fix this.

It appears my ruby install has no racc, so I copied racc.rb and racc/parser.rb from the gem to /usr/lib/ruby/1.9.1, which fixed the problem.

But wouldn't it be better if racc/parser.rb could be found in a gem too, or even if a dependency to the racc gem were added?

regards
Wagner

Reported by Alexander Wagner · September 2nd, 2010 @ 03:39 PM

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

Activity

  1. Pascal Ehlert
    Pascal Ehlert

    Okay so to everyone who stumbles upon this:
    Add gem 'racc' to the top of your Gemfile and it will work.
    Investigating this a bit further soon.

    September 11th, 2010 @ 10:36 PM

  2. Andrew White
    Andrew White
    • State changed from new to invalid
    • Importance changed from to Low

    The problem is that gentoo removes ruby bundled gems like racc from their packages. Rails itself doesn't require racc directly - it's the gems rack-mount, i18n and nokogiri that require it. Any fixes deemed necessary should be in those gems, however I'd guess they'd say use bundler since most people will have racc in their system ruby or will be using rvm.

    September 12th, 2010 @ 12:06 AM