# FreeBSD 5.4 ROR 1.2.3 Premature end of script headers

**URL:** <https://www.ruby-forum.com/t/freebsd-5-4-ror-1-2-3-premature-end-of-script-headers/105337>\
**Category:** Deployment\
**Created:** [May 29, 2007, 1:00am UTC](https://www.ruby-forum.com/t/freebsd-5-4-ror-1-2-3-premature-end-of-script-headers/105337 "2007-05-29T01:00:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukec](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b5e925/32.png) [@lukec](https://www.ruby-forum.com/u/lukec)\
**Post date:** [May 29, 2007, 1:00am UTC](https://www.ruby-forum.com/t/freebsd-5-4-ror-1-2-3-premature-end-of-script-headers/105337/1 "2007-05-29T01:00:45Z")

</div>

Hi Ruby on Rails experts, I have been trying to get Ruby on Rails  
running on my FreeBSD server to no avail.

I’ve overcome a few technical issues, but I’m stumped again.

Here’s an excerpt from my vhost.conf

LoadModule env\_module modules/mod\_env.so

SetEnv RAILS\_ENV development  
DocumentRoot /domainpath/httpdocs/bluke2/public/  
ErrorLog /domainpath/httpdocs/bluke2/log/apache.log

\<Directory /domainpath/httpdocs/bluke2/public/\>  
Options ExecCGI FollowSymLinks  
AddHandler cgi-script .cgi  
AllowOverride all  
Order allow,deny  
Allow from all

When I try to load my web page, I get an application error and the  
following in my log file:  
[Mon May 28 15:47:38 2007] [error] [client 1.2.3.4] Premature end of  
script headers: dispatch.cgi

So, I check the dispatch.cgi file:

# ruby -d public/dispatch.cgi

Exception `NameError' at ./public/../config/boot.rb:14 - uninitialized constant Rails Exception`MissingSourceFile’ at  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27 - no  
such file to load – utf8proc\_native  
/usr/local/lib/ruby/gems/1.8/gems  
–snip–

So, I check to see if the module is installed in gem.

# gem list --local | grep -i utf8proc

utf8proc (1.0.3)

Yup, and I ever reissued the gem install command for it.

I’m at a loss and I’d really appreciate some direction here.

Luke
