When i am running my server I got this error
anand-muranals-macbook:Trunk anandmuranal$ ruby script/server
=> Booting Mongrel (use ’script/server webrick’ to force WEBrick)
=> Rails application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Ruby version is up-to-date; cgi_multipart_eof_fix was not loaded
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment…
Exiting
/Users/anandmuranal/Projects/Trunk/vendor/rails/railties/lib/commands/servers/mongrel.rb:15: warning: already initialized constant OPTIONS
/Users/anandmuranal/Projects/Trunk/vendor/rails/railties/lib/commands/servers/mongrel.rb:18: undefined method `options’ for []:Array (NoMethodError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require’
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:32:in `require’
from /Users/anandmuranal/Projects/Trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require’
from /Users/anandmuranal/Projects/Trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in’
from /Users/anandmuranal/Projects/Trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require’
from /Users/anandmuranal/Projects/Trunk/vendor/rails/railties/lib/commands/server.rb:39
from script/server:3:in `require’
from script/server:3
anand-muranals-macbook:Trunk anandmuranal$
This error will come because you are missing some gem which is required in your application
How to know that, which gem is missing?
Run server by this command
ruby script/server webrick
It will tell you which gem that it fails to load
After this I came to know that ruby-debug is missing
The solution for me was installing the ruby-debug gem – sudo gem install ruby-debug
Now it’s working