Edge Rails - same code, different issues on mac and windows


#1

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:insilence_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:inrequire__’
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:inmethod_missing’
./script/…/config/…/vendor/rails/railties/lib/dispatcher.rb:70:in
prepare_application' ./script/../config/../vendor/rails/railties/lib/dispatcher.rb:37:indispatch’
./script/…/config/…/vendor/rails/railties/lib/webrick_server.rb:115:in
handle_dispatch' ./script/../config/../vendor/rails/railties/lib/webrick_server.rb:81:inservice’

/usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:inrun’
/usr/local/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:162:instart_thread’
/usr/local/lib/ruby/1.8/webrick/server.rb:95:in start' /usr/local/lib/ruby/1.8/webrick/server.rb:92:instart’
/usr/local/lib/ruby/1.8/webrick/server.rb:23:in start' /usr/local/lib/ruby/1.8 /webrick/server.rb:82:instart’
./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:inrequire’
./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?


#2

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


#3

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 #

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:inprepare_application’
#{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:37:in dispatch' #{RAILS_ROOT}/vendor/rails/railties/lib/webrick_server.rb:115:inhandle_dispatch’
#{RAILS_ROOT}/vendor/rails/railties/lib/webrick_server.rb:81:in
service' c:/software/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:inservice’
c:/software/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in run' c:/software/ruby/lib/ruby/1.8/webrick/server.rb:155:instart_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:instart_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:ineach’
c:/software/ruby/lib/ruby/1.8/webrick/server.rb:89:in start' c:/software/ruby/lib/ruby/1.8/webrick/server.rb:79:instart’
c:/software/ruby/lib/ruby/1.8/webrick/server.rb:79:in start' #{RAILS_ROOT}/vendor/rails/railties/lib/webrick_server.rb:67:indispatch’
#{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:inrequire’
#{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:inrequire__’
c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require’
script/server:3


#4

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?


#5

I’ve got 1.8.4 on both machines :-/