2009年3月18日水曜日

WEBrick/Windowsでのエラーについて

こんにちは、モリモルです。


windowsでwebrickを動かす際に、「cgi_runner.rb:47:in `exec':Exec format error」が出る際のメモ。
こちらを参考にしたら動きました。

:CGIInterpreterを追加すると解消されました。


server = HTTPServer.new(
:Port => "8088",
:BindAddress => "localhost",
:DocumentRoot => DOCROOT,
:CGIInterpreter => %("C:/Ruby/bin/ruby.exe")
)