Two questions:
1.) I followed the installation directions for Apache and eruby from the
Pragmatic Programmers book. It does not seem to work. Win2000, apache
2.0.43, eRuby version 1.0.3, ruby 1.6.8 (2002-12-24) [i586-mswin32]. eRuby
does work from the command line.
i.e.
Add the following two lines to httpd.conf:
AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby
2.) Does a mod_ruby binary exist for windows? I have tried compiling it but
it errors out and I have not found a download for it.
installation result:
configure.rb > configure.rb
checking for a BSD compatible install…
C:/Download/Ruby/mod_ruby-1.0.6.tar/mod_ruby-1.0.6/install-rb -c
checking whether we are using gcc… no
checking Ruby version… 1.6.8
checking for static Apache module support… no
checking for dynamic Apache module support…
configure.rb > configure.rb:471:in ``’: No such file or directory - “apxs -q
CFLAGS” (Errno::ENOENT)
Thanks!
eRuby does work. The *.rhtml files must be in the CGI-BIN directory.
How do I set the Apache httpd.conf up to treat the *.rhtml files just like
*.html files?
Thanks!
“Steve Ketcham” sketcham@dsicdi.com wrote in message
news:vehpq5fgfv2gb0@corp.supernews.com…
Two questions:
1.) I followed the installation directions for Apache and eruby from the
Pragmatic Programmers book. It does not seem to work. Win2000, apache
2.0.43, eRuby version 1.0.3, ruby 1.6.8 (2002-12-24) [i586-mswin32].
eRuby
does work from the command line.
i.e.
Add the following two lines to httpd.conf:
AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby
2.) Does a mod_ruby binary exist for windows? I have tried compiling it
but
it errors out and I have not found a download for it.
installation result:
configure.rb > configure.rb
checking for a BSD compatible install…
C:/Download/Ruby/mod_ruby-1.0.6.tar/mod_ruby-1.0.6/install-rb -c
checking whether we are using gcc… no
checking Ruby version… 1.6.8
checking for static Apache module support… no
checking for dynamic Apache module support…
configure.rb > configure.rb:471:in ``': No such file or directory -
"apxs -q
···
CFLAGS" (Errno::ENOENT)
Thanks!