Thanx for your help Adam, the location for perl was wrong, but now I get

Can't locate cgi-lib.pl in @INC (@INC contains:
/usr/lib/perl5/i386-linux/5.00404 /usr/lib/perl5
/usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .) at
/www/cgi-bin/mailfeedback.cgi line 77.
[Fri May 19 15:45:28 2000] access to /www/cgi-bin/mailfeedback.cgi failed for
seldon, reason: Premature end of script headers


on doing a

locate cgi-lib.pl

i get no result so I can only assume I do not have this file on my system, is
this a Perl lib file ? if so what RH rpm is it in ?

Thanx

PMc



-----Original Message-----
From: Adam Moore [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 19, 2000 3:53 PM
To: Peter McCarthy
Cc: Linux Sydney (E-mail)
Subject: RE: [SLUG] CGI script and Apache



> I have the additional line that I forgot before
> exec of /www/cgi-bin/mailfeedback.cgi failed, errno is 2
> I take it that is the perl compile error

2 is no such file or directory isn't? If it's a cgi you've downloaded,
check the #! line at the start of the script. This should be the path to
perl on your system, if it's #!/usr/bin/perl and perl is somewhere else
(#!/usr/local/bin/perl on some silly retarded dists), that would cause
such an error.

Otherwise check the script actually exists in that path, etc, etc.

> How do I check if i am printing content headers ?

Run it from a shell. First line of output should be 'Content-Type:
text/html', next line should be blank.

-- adm

--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to