How to install and test eruby on tiger

I followed the english instructions of
since it seemed recent.
I do have an eruby in /usr/bin, which I did not have before

I changed /private/etc/httpd.conf
adding the two lines
AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby

that seems the same as in the ruby book

I also added index.rhtml to the directory list.

I put the test file in
and test it with

it seems to find the file, but gives me an error
in error.log
[Mon Apr 24 21:17:16 2006] [error] (8)Exec format error:
exec of

this is what I am trying to test with, in erubytest.rhtml
with chmod 755 on the file

eruby test

current time: <%= %>

I took out the reference to foo, and cut it a bit shorter.

I have a ruby cgi file which works from that directory

any suggestions?

Anne G.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs