From: spari@... (Pari Shanmugam)
Date: 2002-07-23T09:25:36+09:00
Subject: Re: mod_ruby and ERubyRun error
Still haven't been able to get eruby working :(
Anybody can guide me on what i could be doing wrong, much appreciate
it!
Here is the httpd.conf entry i have:
----
LoadModule ruby_module libexec/mod_ruby.so
RubyRequire apache/ruby-run
RubyRequire apache/eruby-run
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance
-----
..rbx files execute fine, just i get error message when trying to bring
up .rhtml/eruby files.
Pari Shanmugam
spari@hotmail.com (Pari Shanmugam) wrote in message news:...
> Hello all,
>
> I just installed mod_ruby with Apache and been trying to get it to run eruby
> files. I am able to run ruby scripts fine via mod_ruby, but I get this error
> when trying to bring up a .rhtml (eruby) file in my browser:
>
> httpd error_log:
> ------
> mod_ruby: error in ruby (eval): uninitialized constant ERubyRun at Apache
> (NameError)
> from ruby:0:in `value'
> from ruby:0
> ------
>
> In my httpd.conf I have the lines enabling mod_ruby and eruby taken from
> http://www.modruby.net/doc/install.en.html
>
> Built mod_ruby with apache apxs and eruby enabled. Using mod_ruby-0.9.9,
> eruby-0.9.7, apache-1.3.24, on RedHat 7.3.
>
> Any help would be so much appreciated!
>
> Thanks,
>
> Pari Shanmugam