Webサーバ起動時のNoMethodError

INDEX PAGE

Webサーバ起動時のNoMethodError


Webサーバ起動時に下のようなエラーが出ることがあります。

Starting Mongrel listening at 127.0.0.1:4002

Starting Rails with development environment...

Exiting
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/mongrel.rb:16: warning: already initialized constant OPTIONS
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/mongrel.rb:19: undefined method `options' for []:Array (NoMethodError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'


これはWindows環境で、WebサーバがMongrelの場合ですが
他の環境でもだいたい似たようなメッセージが出ます。
この場合は、私の経験上100%「require」句の記述間違いです。
初期起動時に読み込まれるファイルに書かれている
「require」句の記述ファイル又はディレクトリが存在しないときに発生するようです。
まずはそのあたりを疑うといいと思います。


INDEX PAGE