# Problem with eRuby

**URL:** <https://www.ruby-forum.com/t/problem-with-eruby/63953>\
**Category:** Ruby\
**Created:** [June 20, 2006, 8:49pm UTC](https://www.ruby-forum.com/t/problem-with-eruby/63953 "2006-06-20T20:49:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Firman\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/a9adbd/32.png) [@Firman\_W](https://www.ruby-forum.com/u/Firman_W)\
**Post date:** [June 20, 2006, 8:49pm UTC](https://www.ruby-forum.com/t/problem-with-eruby/63953/1 "2006-06-20T20:49:33Z")

</div>

Hi Everyone,

I already installed Ruby 1.8.4 preview 4 + mod\_fastcgi + mod\_ruby on  
Win XP box and configured the httpd.conf. Looks like something wrong  
there on eruby-run or somewhere, the cgi Ruby script is successfully  
executed, but I got some errors while running a .rhtml (aka eRuby  
script). Here the errors snipped from the Apache error log.

[Tue Jun 20 19:47:40 2006] [notice] FastCGI: process manager initialized  
[Tue Jun 20 19:47:42 2006] [error] mod\_ruby: failed to require  
apache/eruby-run  
[Tue Jun 20 19:47:42 2006] [error] mod\_ruby: error in ruby  
[Tue Jun 20 19:47:42 2006] [error] mod\_ruby:  
C:/System/ruby/lib/ruby/site\_ruby/1.8/apache/eruby-run.rb:45:in  
`require’: no such file to load – eruby (LoadError)  
[Tue Jun 20 19:47:42 2006] [error] mod\_ruby: from  
C:/System/ruby/lib/ruby/site\_ruby/1.8/apache/eruby-run.rb:45

Could someone help me and give some clues?

Thanks,

---

<div class="post-metadata">

**Author:** ![Firman\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/a9adbd/32.png) [@Firman\_W](https://www.ruby-forum.com/u/Firman_W)\
**Post date:** [June 20, 2006, 9:28pm UTC](https://www.ruby-forum.com/t/problem-with-eruby/63953/2 "2006-06-20T21:28:05Z")

</div>

On Jun 20, 2006, at 2:46 PM, Firman W. wrote:

> [Tue Jun 20 19:47:42 2006] [error] mod\_ruby: failed to require  
> apache/eruby-run  
> [Tue Jun 20 19:47:42 2006] [error] mod\_ruby: error in ruby  
> [Tue Jun 20 19:47:42 2006] [error] mod\_ruby:  
> C:/System/ruby/lib/ruby/site\_ruby/1.8/apache/eruby-run.rb:45:in  
> `require’: no such file to load – eruby (LoadError)  
> [Tue Jun 20 19:47:42 2006] [error] mod\_ruby: from  
> C:/System/ruby/lib/ruby/site\_ruby/1.8/apache/eruby-run.rb:45
> 
> Could someone help me and give some clues?

never tried it on windows, but first, I’d make sure that you have an  
euby.rb/so/dll whatever somewhere in your ruby library path.  
Did you make sure the following was in httpd.conf? I know I forgot  
it the first time around:

RubyRequire apache/ruby-run  
RubyRequire apache/eruby-run  
RubyRequire apache/eruby-debug (optional)

-Mat

---

<div class="post-metadata">

**Author:** ![Firman\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/a9adbd/32.png) [@Firman\_W](https://www.ruby-forum.com/u/Firman_W)\
**Post date:** [June 20, 2006, 10:19pm UTC](https://www.ruby-forum.com/t/problem-with-eruby/63953/3 "2006-06-20T22:19:46Z")

</div>

On 6/21/06, Mat S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > initialized
> 
> never tried it on windows, but first, I’d make sure that you have an  
> euby.rb/so/dll whatever somewhere in your ruby library path.  
> Did you make sure the following was in httpd.conf? I know I forgot  
> it the first time around:

No such eruby.rb/so/dll here.

> RubyRequire apache/ruby-run  
> RubyRequire apache/eruby-run  
> RubyRequire apache/eruby-debug (optional)

Yes, those all already in httpd.conf, a problem come while apache  
first run on something in apache/eruby-run.rb, any idea?

Thanks,

---

<div class="post-metadata">

**Author:** ![Firman\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/a9adbd/32.png) [@Firman\_W](https://www.ruby-forum.com/u/Firman_W)\
**Post date:** [June 21, 2006, 2:49pm UTC](https://www.ruby-forum.com/t/problem-with-eruby/63953/4 "2006-06-21T14:49:26Z")

</div>

On Jun 20, 2006, at 4:17 PM, Firman W. wrote:

> > > executed, but I got some errors while running a .rhtml (aka eRuby  
> > > [Tue Jun 20 19:47:42 2006] [error] mod\_ruby: from  
> > > No such eruby.rb/so/dll here.  
> > > Maybe your install didn’t go so well. It looks like mod\_ruby can’t  
> > > find apache/eruby-run either.  
> > > On my system I have:  
> > > /opt/local/lib/ruby/1.8/i686-darwin8.6.2/eruby.bundle  
> > > and  
> > > /opt/local/lib/ruby/1.8/apache/eruby-run.rb

I expect you’ll need the same (.bundle could be a darwin thing  
though, I don’t know). If you installed from source, was your –  
prefix correct?  
I don’t know how ruby or mod\_ruby get their pathing information.  
Maybe someone else can help there.  
-Mat
