Mod_ruby and ERubyRun error

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

Still haven’t been able to get eruby working :frowning:
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
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance

<Files *.rhtml>
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:e4428e32.0207140417.331a9333@posting.google.com

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

here’s mine:

···

Additions for mod_ruby

RubyRequire apache/ruby-run

Execute *.rbx files as Ruby scripts

<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance

RubyRequire apache/eruby-run

Handle *.rhtml files as eRuby files

<Files *.rhtml>
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance

End of ruby settings

~transami

On Mon, 2002-07-22 at 18:25, Pari Shanmugam wrote:

Still haven’t been able to get eruby working :frowning:
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
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance

<Files *.rhtml>
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:e4428e32.0207140417.331a9333@posting.google.com

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


~transami