# Mod\_ruby and ERubyRun error

**URL:** <https://rubytalk.org/t/mod-ruby-and-erubyrun-error/663>\
**Category:** ruby-talk\
**Created:** [14 July 2002 12:21 UTC](https://rubytalk.org/t/mod-ruby-and-erubyrun-error/663 "2002-07-14T12:21:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spari](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@Spari](https://rubytalk.org/u/Spari)\
**Post date:** [14 July 2002 12:21 UTC](https://rubytalk.org/t/mod-ruby-and-erubyrun-error/663/1 "2002-07-14T12:21:46Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![Spari](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@Spari](https://rubytalk.org/u/Spari)\
**Post date:** [23 July 2002 00:25 UTC](https://rubytalk.org/t/mod-ruby-and-erubyrun-error/663/2 "2002-07-23T00:25:36Z")

</div>

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 \<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](mailto:spari@hotmail.com) (Pari Shanmugam) wrote in message news:[e4428e32.0207140417.331a9333@posting.google.com](mailto: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](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

---

<div class="post-metadata">

**Author:** ![Tom\_Sawyer](https://avatars.discourse-cdn.com/v4/letter/t/a587f6/32.png) [@Tom\_Sawyer](https://rubytalk.org/u/Tom_Sawyer)\
**Post date:** [23 July 2002 01:20 UTC](https://rubytalk.org/t/mod-ruby-and-erubyrun-error/663/3 "2002-07-23T01:20:29Z")

</div>

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 ☹  
> > 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](mailto:spari@hotmail.com) (Pari Shanmugam) wrote in message news:[e4428e32.0207140417.331a9333@posting.google.com](mailto: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](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
