LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-01-2002, 07:14 PM   #1
lzyking
Member
 
Registered: Dec 2002
Posts: 74

Rep: Reputation: 15
Angry how to fix the perl bugs


I use redhat8 + openwebmail ,but the openwebmail doesn't work
I heard that the perl-5.8 in redhat 8 had a bug , so it couldn't run
.
when I run the script like that : www.xinry.com/cgi-bin/openwebmail/openwebmail.pl

the IE told me that Server error:
Premature end of script headers: /var/www/cgi-bin/openwebmail/openwebmail.pl

so I want to fix the perl bug, but I don't find the fix file, an I don't know how to do it.

Could I un-install the perl5.8 an install a lower vision perl in redhat 7.2

please help me thanks a lot
 
Old 12-01-2002, 07:51 PM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
This does not sound like a bug with Perl, but a problem with the script. Try running the script from a command prompt and verify that there is at least one blank line between the http headers and the actual html content.
 
Old 12-01-2002, 08:24 PM   #3
lzyking
Member
 
Registered: Dec 2002
Posts: 74

Original Poster
Rep: Reputation: 15
sorry , how can I running the script from a command prompt
,I cann't find the http headers in openwebmail.pl

the bug is true ,please read this :
http://openwebmail.org/openwebmail/doc/changes.txt

in 11/27/2002 (version 1.81)
 
Old 12-01-2002, 08:42 PM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Ok, according to that doc you must upgrade to openwebmail 1.81 to account for the bug. Unfortunately, this bug and the problem that you are experiencing do not seem related. One is possible file corruption. The other is "premature end of script headers" which is content presentation problem. To run from command prompt, change to that directory and run ./openwebmail.pl.
 
Old 12-01-2002, 09:09 PM   #5
lzyking
Member
 
Registered: Dec 2002
Posts: 74

Original Poster
Rep: Reputation: 15
Thanks stickman
I have done it with the advices, and I have updated the openwebmail in 1.8 ,but the question was still exist, and I run the script like this : # ./openwebmail.pl, the linux told me that:

Can't locate CGI.pm in @ing (@ing contains:/usr/lib/perl5.8.0/i386-linux-thread-multi/usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0) at ./openwebmail.pl line 33. begin failed--compilation aborted at ./openwebmail.pl line 33.

what can I do for this ?
 
Old 12-01-2002, 09:29 PM   #6
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Ok. This is a relatively easy fix. Head on over to CPAN and download CGI.pm.
 
Old 12-01-2002, 10:29 PM   #7
lzyking
Member
 
Registered: Dec 2002
Posts: 74

Original Poster
Rep: Reputation: 15
thanks stickman
I am trying my best to find it ,but I can't find the cgi.pm download file , the web address which cpan tell me is not work!!!

http://www-genome.wi.mit.edu/ftp/pub.../cgi_docs.html
ftp://ftp-genome.wi.mit.edu/pub/software/WWW/

what can I do ? hehe
 
Old 12-02-2002, 10:27 PM   #8
lzyking
Member
 
Registered: Dec 2002
Posts: 74

Original Poster
Rep: Reputation: 15
up
 
Old 12-02-2002, 10:29 PM   #9
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
It is working now?
 
Old 12-03-2002, 02:09 AM   #10
lzyking
Member
 
Registered: Dec 2002
Posts: 74

Original Poster
Rep: Reputation: 15
Thanks stickman
I have solved the problem ,you are really a good man hehe

By the way, where are you from?
I am an Chinese
 
Old 01-13-2003, 02:09 AM   #11
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I just switched from squirrelmail to openwebmail

It's cool

 
Old 02-10-2006, 12:20 PM   #12
duke_snyder
LQ Newbie
 
Registered: Feb 2006
Posts: 4

Rep: Reputation: 0
I am having a similar problem. I am getting a "Premature end of script headers: openwebmail-main.pl" on webmail 2.51 on linux ES3. The problem is intermittent. There is no rhyme or reason but when I get the error I simply refresh the page and it runs. Can anyone explain why this comes and goes? In my error_log it's always the same error but sometimes it's a different .pl file throwing it. AND every time I refresh it runs fine. I am stumped!

Premature end of script headers: openwebmail-read.pl
Premature end of script headers: openwebmail-main.pl

FYI I know this in an old thread so I am going to post a new thread. please forgive my cross posting in advance.
 
Old 02-10-2006, 05:04 PM   #13
duke_snyder
LQ Newbie
 
Registered: Feb 2006
Posts: 4

Rep: Reputation: 0
Well, I figured it out. The version of openwebmail 2.51 I used was the latest build (june 28th 2005) and seems to be un-stable. SO, I un-installed it and installed the stable version of 2.51 (feb 28th 2005) and all seems well.

I hope this helps anyone else who may run into the problem as I found very little support on the matter and the openwebmail project seems to be at a standstill. Looks like the original developer "Thomas Chung" is M.I.A.

If anyone knows where he is, tell him he is sorely missed right now as openwebmail is a killer free web based mail program.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum, firefox, ATI drivers, bashrc, perl/Tk, Logitech keyboard, etc - lots to fix!!!! Nalorin Linux - Software 9 06-23-2005 01:45 AM
all attempts to fix the problem failed... can someone help me fix partition space? foreverdita Linux - Enterprise 2 05-11-2005 10:02 AM
Nvidia lockup mouse moves bugs fix. and Alsamixer problems. slider129ca Linux - Software 0 04-07-2005 05:57 AM
Are 9.2 bugs fixed? wiggywag Mandriva 4 11-12-2003 01:07 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration