homepage Welcome to WebmasterWorld Guest from 54.205.119.163
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

    
Small error on collective
Greg




msg:438728
 4:01 am on Jul 14, 2000 (gmt 0)

The collective looks like a great script, however when I was installing it I received the following error:

CGI Error

The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

Can't locate common.lib in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at D:\home\mysite\cgi-bin\collective\collective.cgi line 95.

Does anyone understand that error? I've played around with it and can't seem to find a solution. Thank you.
-Greg

Edited by: Greg

 

littleman




msg:438729
 5:30 am on Jul 14, 2000 (gmt 0)

Looks like you may have a path problem. In a windows perl environment it is typical to have to put two forward slashes '\\' when you are laying out a path. The first slash allows perl to see the second slash as part of the path.
So C:/Perl/site/lib would be changed to C:\\Perl\\site\\lib
And
C:/Perl/lib would be C:\\Perl\\lib

Greg




msg:438730
 4:18 pm on Jul 14, 2000 (gmt 0)

Well, for some reason i can't find where it says C:/Perl/lib in the script itself. That's partly what's confusing me.
Also, I'm supposed to put the .lib's in the same directory as the collective.cgi script right?
sorry for the newbieness.

littleman




msg:438731
 9:13 pm on Jul 14, 2000 (gmt 0)

Greg,
Go to line 95 and look for
require "common.lib";

Replace that line with

require "D:\\home\\mysite\\cgi-bin\\collective\\common.lib";

that should fix your problem. I had to download the script so I could see what you were looking at.

Greg




msg:438732
 9:55 pm on Jul 14, 2000 (gmt 0)

GREAT! Thank you so much littleman! And thank you too brett for the great script!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved