CGI returns Internal Error

Mac Write
I am trying out the free UltimateBB and when I use the hello.cgi test CGI, I get "Internal Error". you can see it at

the permissions are set to 755 and when I check the error log, this is what I get.

[Sun Oct 15 21:50:25 2000] [error] [client] Premature end of script headers: /Library/WebServer/CGI-Executables/hello.cgi

any suggestions???
Like this:
Your problem is the file-format. U have to save the file as Unix. If u use BBEdit..there´s an option for unix.

had the same probelm...this solved it