ERubyRun eval error on Fedora Core 3
Tom Trebisky <[email protected]> Thu, 3 Mar 2005 17:50:46 -0700
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Organization | for the birds |
| Message-ID | <[email protected]> |
I am sure this is something I have screwed up, but I would be grateful for help. I have been putting this off hoping to work it out myself, and now a week has gone by .... I am baffled, and some Google searches indicate there is others have this problem, but I have yet to find a solution that works. Any help would be appreciated. Here are the details: I just built (and I would have thought properly installed) mod_ruby 1.2.4 -- this is on a system that was happily running an older version of mod_ruby prior to its upgrade to Fedora Core 3. This system has: mod_ruby 1.2.4 ruby 1.8.2 apache 2.0.52 linux 2.6 kernel mod_ruby.so is in /usr/lib/httpd/modules ruby-run.rb is in /usr/lib/ruby/1.8/apache eruby-run.rb is in /usr/lib/ruby/1.8/apache When I visit a .rhtml page, I get: [Thu Mar 03 17:36:56 2005] [error] mod_ruby: error in ruby\n(eval):45: (eval):45: uninitialized constant Apache::ERubyRun (NameError)\n\tfrom (eval):45:in `value'\n I have all the apache config stuff in a file /etc/httpd/conf.d/mod_ruby.conf as follows: LoadModule ruby_module modules/mod_ruby.so # for Apache::RubyRun RubyRequire apache/ruby-run # for Apache::ERubyRun RubyRequire apache/eruby-run # exec files under /ruby as ruby scripts. <Location /ruby> SetHandler ruby-object RubyHandler Apache::RubyRun.instance Options ExecCGI </Location> # handle *.rhtml as eruby files. <Files *.rhtml> SetHandler ruby-object RubyHandler Apache::ERubyRun.instance </Files> # exec *.rbx as ruby scripts. <Files *.rbx> SetHandler ruby-object RubyHandler Apache::RubyRun.instance </Files> # # handle files under /eruby as eRuby files by eruby. # <Location /eruby> # SetHandler ruby-object # RubyHandler Apache::ERubyRun.instance # Options ExecCGI # </Location> # # for Apache::ERbRun # RubyRequire apache/erb-run # # # handle files under /erb as eRuby files by ERb. # <Location /erb> # SetHandler ruby-object # RubyHandler Apache::ERbRun.instance # Options ExecCGI # </Location> # # for debug # RubyRequire auto-reload