Hi, I have installed a Macports Ruby on Rails with MySQL and Mongrel following the instructions from:http://wiki.rubyonrails.org/rails/pages/Installation The server did start fine but now exits with the following Terminal printout. radarjem:~/newrailsapp jem$ 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 ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... Exiting /Users/jem/newrailsapp/config/environment.rb:60: undefined method `reqire'' for main:Object (NoMethodError) from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'' from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:147:in `rails'' from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:113:in `cloaker_'' from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:149:in `call'' ... 18 levels... from /opt/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39 from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from script/server:3 radarjem:~/newrailsapp jem$ What should I do to repair this? Any help would be appreciated Regards Jeremy -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
mpfilbin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Mar-21 00:48 UTC
Re: New install on Mac server start error
Hi Jeremy, It looks like the issue may be in the environment.rb file of your rails app "newrailsapp" on line #60. If you change "reqire" to "require" it should clear you up. Looks to me that the install is correct. If that doesn''t work try posting the contents of your environment.rb file here and I''ll have another look. - Mike On Mar 20, 5:04 pm, Jeremy Sellors <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi, > I have installed a Macports Ruby on Rails with MySQL and Mongrel > following the instructions > from:http://wiki.rubyonrails.org/rails/pages/Installation > The server did start fine but now exits with the following Terminal > printout. > radarjem:~/newrailsapp jem$ script/server > => Booting Mongrel (use ''script/server webrick'' to force WEBrick) > => Rails application starting onhttp://0.0.0.0:3000 > => Call with -d to detach > => Ctrl-C to shutdown server > ** Starting Mongrel listening at 0.0.0.0:3000 > ** Starting Rails with development environment... > Exiting > /Users/jem/newrailsapp/config/environment.rb:60: undefined method > `reqire'' for main:Object (NoMethodError) > from > /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > from > /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in > `require'' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in > `new_constants_in'' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in > `require'' > from > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:147:in > `rails'' > from > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:113:in > `cloaker_'' > from > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:149:in > `call'' > ... 18 levels... > from > /opt/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39 > from > /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > from > /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > from script/server:3 > radarjem:~/newrailsapp jem$ > What should I do to repair this? > Any help would be appreciated > Regards Jeremy > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks Mike, The last line was: reqire ''flickr'' So I changed it to: require ''flickr'' as you suugested Now the Mongrel server starts. My Appreciation, Jeremy -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---