Premature end of script headers


We install ruby, rail, rubygems, rails, mod_fastcgi and fastCGI nad we
get from this URL ans everything
install with no errors, but when we try to run “test” we get this:

Error from apache error_log:

Premature end of script headers:
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:46:in `require’: no such
file to load – rubygems/rubygems_version.rb (LoadError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:46
from ./…/config/boot.rb:18
from ./…/config/environment.rb:11
from dispatch.cgi:3
[Fri Apr 14 17:27:40 2006] [error] Premature end of script headers:



require File.dirname(FILE) + “/…/config/environment” unless

require “dispatcher”

ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if } if defined?(Apache::RubyRun)


Options +FollowSymLinks +ExecCGI

We dont know what is wrong. Anyone got idea or any fix for that ?

Thank you.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs