Brian Donahue
2006-Mar-07 15:38 UTC
[Rails] Edge Rails - same code, different issues on mac and windows
Trying to get an app up and running with Edge Rails, and I''ve run into different issues on Mac and Windows with the exact same code. It''s similar to the issue posted in the previous RJS/Edge Rails thread, but I didn''t see any answers in there (maybe I missed the real answer?) Both console/error outputs listed below: I can''t even get WEBrick to start on windows (mac to follow): => Booting WEBrick... ./script/../config/../vendor/rails/activesupport/lib/active_support/core_ext/kernel/agnostics.rb:7:i n ``'': Exec format error - rake tmp:create (Errno::ENOEXEC) from ./script/../config/../vendor/rails/activesupport/lib/active_support/core_ext/kernel/agn ostics.rb:7:in ``'' from ./script/../config/../vendor/rails/railties/lib/commands/server.rb:28 from ./script/../config/../vendor/rails/railties/lib/commands/server.rb:28:in `silence_stder r'' from ./script/../config/../vendor/rails/activesupport/lib/active_support/core_ext/kernel/rep orting.rb:26:in `silence_stream'' from ./script/../config/../vendor/rails/activesupport/lib/active_support/core_ext/kernel/rep orting.rb:26:in `silence_stderr'' from ./script/../config/../vendor/rails/railties/lib/commands/server.rb:28 from c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'' from c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' ######################### On Mac, WEBrick boots, but action I hit gives me: undefined method `verify_active_connections!'' for ActiveRecord::Base:Class /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:991:in `method_missing'' ./script/../config/../vendor/rails/railties/lib/dispatcher.rb:70:in `prepare_application'' ./script/../config/../vendor/rails/railties/lib/dispatcher.rb:37:in `dispatch'' ./script/../config/../vendor/rails/railties/lib/webrick_server.rb:115:in `handle_dispatch'' ./script/../config/../vendor/rails/railties/lib/webrick_server.rb:81:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' /usr/local/lib/ruby/1.8 /webrick/server.rb:82:in `start'' ./script/../config/../vendor/rails/railties/lib/webrick_server.rb:67:in `dispatch'' ./script/../config/../vendor/rails/railties/lib/commands/servers/webrick.rb:59 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:149:in `require'' ./script/../config/../vendor/rails/railties/lib/commands/server.rb:29 script/server:3 Any ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060307/7df9b0da/attachment-0001.html
frazer horn
2006-Mar-07 15:57 UTC
[Rails] Edge Rails - same code, different issues on mac and windows
I had the same windows issue comment line (28) out as below in the following file - vendor\rails\railties\lib\commands\server.rb #silence_stderr { `rake tmp:create` } You can run rake tmp:create manually if needed. Then webrick ran fine for me. I have not followed through any further as to why this is an issue. Hope this helps On 3/7/06, Brian Donahue <brian@pigeonmoon.com> wrote:> > Trying to get an app up and running with Edge Rails, and I''ve run into > different issues on Mac and Windows with the exact same code. It''s similar > to the issue posted in the previous RJS/Edge Rails thread, but I didn''t see > any answers in there (maybe I missed the real answer?) Both console/error > outputs listed below: > > > I can''t even get WEBrick to start on windows (mac to follow): > > => Booting WEBrick... > > ./script/../config/../vendor/rails/activesupport/lib/active_support/core_ext/kernel/agnostics.rb:7:i > n ``'': Exec format error - rake tmp:create (Errno::ENOEXEC) > from > ./script/../config/../vendor/rails/activesupport/lib/active_support/core_ext/kernel/agn > ostics.rb:7:in ``'' > from > ./script/../config/../vendor/rails/railties/lib/commands/server.rb:28 > from > ./script/../config/../vendor/rails/railties/lib/commands/server.rb:28:in > `silence_stder > r'' > from > ./script/../config/../vendor/rails/activesupport/lib/active_support/core_ext/kernel/rep > orting.rb:26:in `silence_stream'' > from > ./script/../config/../vendor/rails/activesupport/lib/active_support/core_ext/kernel/rep > orting.rb:26:in `silence_stderr'' > from > ./script/../config/../vendor/rails/railties/lib/commands/server.rb:28 > from > c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require__'' > from > c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require'' > > > ######################### > > On Mac, WEBrick boots, but action I hit gives me: > > undefined method `verify_active_connections!'' for ActiveRecord::Base:Class > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:991:in > `method_missing'' > ./script/../config/../vendor/rails/railties/lib/dispatcher.rb:70:in > `prepare_application'' > ./script/../config/../vendor/rails/railties/lib/dispatcher.rb:37:in > `dispatch'' > ./script/../config/../vendor/rails/railties/lib/webrick_server.rb:115:in > `handle_dispatch'' > ./script/../config/../vendor/rails/railties/lib/webrick_server.rb:81:in > `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' > /usr/local/lib/ruby/1.8 /webrick/server.rb:82:in `start'' > ./script/../config/../vendor/rails/railties/lib/webrick_server.rb:67:in > `dispatch'' > > ./script/../config/../vendor/rails/railties/lib/commands/servers/webrick.rb:59 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require'' > ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:149:in > `require'' > ./script/../config/../vendor/rails/railties/lib/commands/server.rb:29 > script/server:3 > > > Any ideas? > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060307/dc89dcfd/attachment-0001.html
Brian Donahue
2006-Mar-07 16:05 UTC
[Rails] Edge Rails - same code, different issues on mac and windows
Frazer, Thanks for that - that got WEBrick running. Now I have the same issue on both machines (I guess that''s progress!) Windows response: ############################ NoMethodError in <controller not set>#<action not set> undefined method `verify_active_connections!'' for ActiveRecord::Base:Class RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace c:/software/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:991:in `method_missing'' #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:70:in `prepare_application'' #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:37:in `dispatch'' #{RAILS_ROOT}/vendor/rails/railties/lib/webrick_server.rb:115:in `handle_dispatch'' #{RAILS_ROOT}/vendor/rails/railties/lib/webrick_server.rb:81:in `service'' c:/software/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' c:/software/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' c:/software/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'' c:/software/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start'' c:/software/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'' c:/software/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start'' c:/software/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each'' c:/software/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start'' c:/software/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'' c:/software/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'' #{RAILS_ROOT}/vendor/rails/railties/lib/webrick_server.rb:67:in `dispatch'' #{RAILS_ROOT}/vendor/rails/railties/lib/commands/servers/webrick.rb:59 c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'' c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' #{RAILS_ROOT}/vendor/rails/activesupport/lib/active_support/dependencies.rb:149:in `require'' #{RAILS_ROOT}/vendor/rails/railties/lib/commands/server.rb:29 c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'' c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' script/server:3 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060307/9bf2d5ea/attachment.html
frazer horn
2006-Mar-07 19:05 UTC
[Rails] Edge Rails - same code, different issues on mac and windows
Yes, I think I had this issue too. I resolved this by upgrading from ruby 1.8.2 to 1.8.4. What version of ruby are you running? On 3/7/06, Brian Donahue <brian@pigeonmoon.com> wrote:> > Frazer, > > Thanks for that - that got WEBrick running. Now I have the same issue on > both machines (I guess that''s progress!) Windows response: > > ############################ > > NoMethodError in <controller not set>#<action not set> > > > undefined method `verify_active_connections!'' for ActiveRecord::Base:Class > > RAILS_ROOT: ./script/../config/.. > Application Trace | Framework Trace | Full Trace > > c:/software/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:991:in > `method_missing'' > #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:70:in > `prepare_application'' > #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:37:in `dispatch'' > #{RAILS_ROOT}/vendor/rails/railties/lib/webrick_server.rb:115:in > `handle_dispatch'' > #{RAILS_ROOT}/vendor/rails/railties/lib/webrick_server.rb:81:in `service'' > c:/software/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > c:/software/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > c:/software/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'' > c:/software/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start'' > c:/software/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'' > c:/software/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start'' > c:/software/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each'' > c:/software/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start'' > c:/software/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'' > c:/software/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'' > #{RAILS_ROOT}/vendor/rails/railties/lib/webrick_server.rb:67:in `dispatch'' > #{RAILS_ROOT}/vendor/rails/railties/lib/commands/servers/webrick.rb:59 > > c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require__'' > c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require'' > #{RAILS_ROOT}/vendor/rails/activesupport/lib/active_support/dependencies.rb:149:in > `require'' > #{RAILS_ROOT}/vendor/rails/railties/lib/commands/server.rb:29 > > c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require__'' > c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require'' > script/server:3 > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060307/1255f0c7/attachment.html
Brian Donahue
2006-Mar-07 22:54 UTC
[Rails] Edge Rails - same code, different issues on mac and windows
I''ve got 1.8.4 on both machines :-/ On 3/7/06, frazer horn <frazer.list@gmail.com> wrote:> > Yes, I think I had this issue too. > > I resolved this by upgrading from ruby 1.8.2 to 1.8.4. > > What version of ruby are you running? > > On 3/7/06, Brian Donahue <brian@pigeonmoon.com> wrote: > > > Frazer, > > Thanks for that - that got WEBrick running. Now I have the same issue on > both machines (I guess that''s progress!) Windows response: > > ############################ > > NoMethodError in <controller not set>#<action not set> > > > undefined method `verify_active_connections!'' for ActiveRecord::Base:Class > > RAILS_ROOT: ./script/../config/.. > Application Trace | Framework Trace | Full Trace > > c:/software/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:991:in > `method_missing'' > #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:70:in > `prepare_application'' > #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:37:in `dispatch'' > #{RAILS_ROOT}/vendor/rails/railties/lib/webrick_server.rb:115:in > `handle_dispatch'' > #{RAILS_ROOT}/vendor/rails/railties/lib/webrick_server.rb:81:in `service'' > c:/software/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > c:/software/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > c:/software/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'' > c:/software/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start'' > c:/software/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'' > c:/software/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start'' > c:/software/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each'' > c:/software/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start'' > c:/software/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'' > c:/software/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'' > #{RAILS_ROOT}/vendor/rails/railties/lib/webrick_server.rb:67:in `dispatch'' > #{RAILS_ROOT}/vendor/rails/railties/lib/commands/servers/webrick.rb:59 > > c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require__'' > c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require'' > #{RAILS_ROOT}/vendor/rails/activesupport/lib/active_support/dependencies.rb:149:in > `require'' > #{RAILS_ROOT}/vendor/rails/railties/lib/commands/server.rb:29 > > c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require__'' > c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require'' > script/server:3 > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060307/815d8f84/attachment.html