Should I be able to run this and get some meaningful output? I''m trying to convert my app to run with Apache2/CGI and I''ve got the snippet that the RoR book suggests. The app runs fine with WEBrick, but I''ve got to scale it a little bit. [root@ops cms]# ruby public/dispatch.fcgi /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in `const_missing'': uninitialized constant RailsFCGIHandler (NameError) from public/dispatch.fcgi:24 [root@ops cms]# ruby public/dispatch.cgi Status: 500 Internal Server Error [root@ops cms]# ruby public/dispatch.rb Status: 500 Internal Server Error [root@ops cms]# I''m struggling with this as I can''t trace down the error. It happens with a fresh rails install as well as my app, both of which work fine with WEBrick. Does anyone have any suggestions? thanks paul -- Posted via http://www.ruby-forum.com/.
my apache logs show this: [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in `const_missing'': uninitialized constant ActiveRecordError (NameError) [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/validations.rb:9 [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'' [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in `require'' [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record.rb:39 [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'' [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:182:in `activate'' [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \t ... 7 levels... [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom /var/www/cms/public/../config/environment.rb:8:in `require'' [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom /var/www/cms/public/../config/environment.rb:8 [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom /var/www/cms/public/dispatch.cgi:3:in `require'' [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom /var/www/cms/public/dispatch.cgi:3 [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] Premature end of script headers: dispatch.cgi -- Posted via http://www.ruby-forum.com/.
If anyone else has this issue, it was Ruby version 1.8.2 and rails 1.0.0 being incompatiable somehow. I upgraded ruby to 1.8.4 and everything clicked into place. -- Posted via http://www.ruby-forum.com/.
On 1/20/06, Paul <paulvoccio@hotmail.com> wrote:> If anyone else has this issue, it was Ruby version 1.8.2 and rails 1.0.0 > being incompatiable somehow. I upgraded ruby to 1.8.4 and everything > clicked into place.I haven''t had any problems with Ruby 1.8.2 & Rails 1.0.> > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >