<div class="text">
      
        <pre>I am trying to get my rails project working on a new machine. I am using<br>OpenSuse 10.3 and following steps were performed,<br>1. installed rubygems<br>2. installed Rails (1.x) using Suse repository - it didn&#39;t have latest<br>
version.<br>3. updated gem version and Rails version.<br>4. installed other gems such rcov<br>5. installed &#39;tzinfo_timezone&#39; plugin<br><br>Now &#39;rake db:create:all&#39; or &#39;script/server&#39; gives me error as -<br>
[code=]<br><br>/home/pavgi/agenda32/vendor/plugins/tzinfo_timezone/init.rb:4:in<br>`remove_const&#39;: constant Object::TimeZone not defined (NameError)<br>        from<br>/home/pavgi/agenda32/vendor/plugins/tzinfo_timezone/init.rb:4:in `send&#39;<br>
        from<br>/home/pavgi/agenda32/vendor/plugins/tzinfo_timezone/init.rb:4:in<br>`evaluate_init_rb&#39;<br>        from<br>/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin.rb:103:in<br>`evaluate_init_rb&#39;<br>
        from<br>/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/kernel/reporting.rb:11:in<br>`silence_warnings&#39;<br>        from<br>/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin.rb:99:in<br>
`evaluate_init_rb&#39;<br>        from<br>/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin.rb:44:in `load&#39;<br>        from<br>/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin/loader.rb:33:in<br>`load_plugins&#39;<br>
        from<br>/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin/loader.rb:32:in<br>`each&#39;<br>         ... 17 levels...<br>        from<br>/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49<br>        from<br>
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in<br>`gem_original_require&#39;<br>        from<br>/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require&#39;<br>        from script/server:3<br>[/code]<br>
<br>Now, if I comment out the line init.rb:4<br>[code=]<br>Object.send(:remove_const, :TimeZone)<br>[/code]<br>then above rake command and server start runs successfully. What and<br>where could be the problem? Where do I define the constant<br>
Object::TimeZone? Any help for debugging? (The same code runs<br>successfully on my old machine.)<br><br>Thanks,<br>Shantanu.</pre>
      
  </div>