Apache2 mod_ruby and eruby

Yvon Thoraval yvon.thoraval at gmail.com
Fri May 2 10:09:13 PDT 2008


i've upgraded Apache2 two days ago, but mod-ruby is only working with ruby,
as cgi, but not with eruby.

i get the following error :
[Wed Apr 30 16:52:49 2008] [error] mod_ruby:   from
/opt/local/lib/ruby/1.8/apache/eruby-run.rb:45
[Wed Apr 30 16:52:49 2008] [notice] Apache/2.2.8 (Unix) mod_ssl/2.2.8
OpenSSL/0.9.8g DAV/2 mod_ruby/1.2.6 Ruby/1.8.6(2007-09-24) configured --
resuming normal operations
[Wed Apr 30 16:53:57 2008] [error] mod_ruby: failed to require
apache/eruby-run
[Wed Apr 30 16:53:57 2008] [error] mod_ruby: error in ruby
[Wed Apr 30 16:53:57 2008] [error] mod_ruby:
/opt/local/lib/ruby/1.8/apache/eruby-run.rb:45:in `require': no such file to
load -- eruby (LoadError)


the line 45 being :

require 'eruby'

then, i've tried to change it to the absolute path of eruby (ie.
/opt/local/bin/eruby) without any effect.

i should mention eruby is working well from command line and i've verified
the symlink :
~%> ls -al /opt/local/apache2/cgi-bin/eruby
lrwxr-xr-x   1 root  admin  20 28 avr 11:50 /opt/local/apache2/cgi-bin/eruby
-> /opt/local/bin/eruby

someone else had this kind of prob ?


-- 
yvon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20080502/78be81df/attachment.html


More information about the macports-users mailing list