# How to install and test eruby on tiger

**URL:** <https://www.ruby-forum.com/t/how-to-install-and-test-eruby-on-tiger/58708>\
**Category:** Ruby\
**Created:** [April 25, 2006, 3:33am UTC](https://www.ruby-forum.com/t/how-to-install-and-test-eruby-on-tiger/58708 "2006-04-25T03:33:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anne\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@Anne\_G](https://www.ruby-forum.com/u/Anne_G)\
**Post date:** [April 25, 2006, 3:33am UTC](https://www.ruby-forum.com/t/how-to-install-and-test-eruby-on-tiger/58708/1 "2006-04-25T03:33:37Z")

</div>

I followed the english instructions of  
[http://mujblog.info/gransy17/software/apache--eruby](http://mujblog.info/gransy17/software/apache--eruby)  
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  
/library/webserver/CGI-Executables/basic  
and test it with  
[http://127.0.0.1/cgi-bin/basic/erubytest.rhtml](http://127.0.0.1/cgi-bin/basic/erubytest.rhtml)

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  
/Library/WebServer/CGI-Executables/basic/erubytest.rhtml  
failed

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

# eruby test

current time: \<%= Time.now %\>

from  
[http://svn.modruby.net/repos/eruby/trunk/examples/test.rhtml](http://svn.modruby.net/repos/eruby/trunk/examples/test.rhtml)  
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.
