This project is archived and is in readonly mode.
racc/parser.rb not found in gem
Reported by Alexander Wagner | September 2nd, 2010 @ 03:39 PM
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:inrequire': 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
Comments and changes to this ticket
-
Pascal Ehlert September 11th, 2010 @ 10:36 PM
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. -
Andrew White September 12th, 2010 @ 12:06 AM
- 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.
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>