LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-02-2003, 01:30 AM   #1
KittyWu
LQ Newbie
 
Registered: Jul 2003
Location: China
Posts: 11

Rep: Reputation: Disabled
Question 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?
 
Old 07-02-2003, 01:47 AM   #2
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Rep: Reputation: 19
Install LBCGI.pm from www.perl.com/CPAN IMHO
 
Old 07-02-2003, 01:58 AM   #3
KittyWu
LQ Newbie
 
Registered: Jul 2003
Location: China
Posts: 11

Original Poster
Rep: Reputation: Disabled
thanks Nerd2.
I don't know which rpm need to install. I am just a newbie.
Could you tell me? thanks.
 
Old 07-02-2003, 02:02 AM   #4
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Rep: Reputation: 19
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........??
 
Old 07-02-2003, 02:23 AM   #5
KittyWu
LQ Newbie
 
Registered: Jul 2003
Location: China
Posts: 11

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-02-2003, 02:38 AM   #6
KittyWu
LQ Newbie
 
Registered: Jul 2003
Location: China
Posts: 11

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply



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
CGI question rblampain Programming 3 07-19-2005 11:29 PM
cgi-bin Question kemplej Linux - Networking 2 11-23-2004 09:54 AM
Perl/CGI question jacksmash Linux - Software 3 11-06-2003 02:23 PM
Dumb CGI Question. jwknox Programming 1 01-15-2002 01:50 AM
CGI question doodah Programming 1 05-22-2001 09:19 PM

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

All times are GMT -5. The time now is 02:52 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