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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C79b0fa6c468a7f9b3cd1874c0012c74?d=identicon&s=25 Brian Donahue (Guest)
on 2006-03-07 16:39
(Received via mailing list)
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?
Cf80d0758047e94940444feadf82a9bf?d=identicon&s=25 frazer horn (Guest)
on 2006-03-07 16:57
(Received via mailing list)
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
C79b0fa6c468a7f9b3cd1874c0012c74?d=identicon&s=25 Brian Donahue (Guest)
on 2006-03-07 17:06
(Received via mailing list)
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
Cf80d0758047e94940444feadf82a9bf?d=identicon&s=25 frazer horn (Guest)
on 2006-03-07 20:06
(Received via mailing list)
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?
C79b0fa6c468a7f9b3cd1874c0012c74?d=identicon&s=25 Brian Donahue (Guest)
on 2006-03-07 23:56
(Received via mailing list)
I've got 1.8.4 on both machines :-/
This topic is locked and can not be replied to.