LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   A question of CGI (https://www.linuxquestions.org/questions/linux-software-2/a-question-of-cgi-69464/)

KittyWu 07-02-2003 01:30 AM

A question of CGI
 
When I browse a cgi file with IE, but failed.
the error info. in the error_log is
Premature end of script headers: install.cgi
[Wed Jul 02 14:15:13 2003] [error] [client 172.31.106.46] Can't locate LBCGI.pm in @INC (@INC contains: . /usr/lib/perl5/5.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/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at /var/www/cgi-bin/install.cgi line 36.
[Wed Jul 02 14:15:13 2003] [error] [client 172.31.106.46] BEGIN failed--compilation aborted at /var/www/cgi-bin/install.cgi line 36.

what can i do?

Nerd2 07-02-2003 01:47 AM

Install LBCGI.pm from www.perl.com/CPAN IMHO

KittyWu 07-02-2003 01:58 AM

thanks Nerd2.
I don't know which rpm need to install. I am just a newbie.
Could you tell me? thanks.

Nerd2 07-02-2003 02:02 AM

AFAIK you just download the perlmodule and dump it in /usr/lib/perl5/5.8.0.

However, I can't seem to find that module in CPAN anyway........??

KittyWu 07-02-2003 02:23 AM

I can't catch the head. I use command" perl install.cgi" , it is ok. It only couldn't be browsed in IE.

First I doubt the format of the cgi file is not ASCII, so I use dos2unix convert them again. But the result is as before.

KittyWu 07-02-2003 02:38 AM

I modify the permission of part CGI file ,then the error become

mod_mime_magic: can't read `/var/www/cgi-bin/install.cgi'
[Wed Jul 02 15:34:14 2003] [error] [client 172.31.106.46] Premature end of script headers: install.cgi


All times are GMT -5. The time now is 04:15 AM.