Gossamer Forum
Home : Products : DBMan : Installation :

(WIN2K) - CGI error :: Can't locate CGI.pm in @INC

Quote Reply
(WIN2K) - CGI error :: Can't locate CGI.pm in @INC
Hey DBMAN Gurus

All right I am moving from UNIX box to a WINDOWS 2000 box and I am trying to move my dbman database I am getting the following error message in the browser:

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 CGI.pm in @INC (@INC contains: .) at D:\sites\www.centraltickets.com.au\www\cgi-bin\newgames\db.pl line 39.
BEGIN failed--compilation aborted at D:\sites\www.centraltickets.com.au\www\cgi-bin\newgames\db.pl line 39.

Now in the .pl script line 39 and 40 read as follows

use CGI;
$query = new CGI;

Can someone please help!! Do I need to get the host to load some .pm files??

Thankign you in advance
Jacko
Quote Reply
Re: [ozunderground] (WIN2K) - CGI error :: Can't locate CGI.pm in @INC In reply to
My suggestion is to search the forum for the specific error message you are receiving.

Also view this thread:

Subject: DBMan in a Windows environment - Checklist
AstroBoy 12-Oct-00
Thread: http://gossamer-threads.com/p/108916

Hope this helps

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] (WIN2K) - CGI error :: Can't locate CGI.pm in @INC In reply to
Hey LoisC

Thanks for the pornters, BUT SADLY I have tried searching for the error messaage found nothing and I have used the checklist. THat is why I posted the message for some help because I cannot work out what is happening.

SO I STILL CANNOT GET THE DATABASE TO WORK ON WINDOWS 2000

Regards,
David

Last edited by:

ozunderground: Oct 14, 2002, 4:13 PM
Quote Reply
Re: [ozunderground] (WIN2K) - CGI error :: Can't locate CGI.pm in @INC In reply to
Can you get any Perl scripts to run?

There are some sample scripts available at activestate.com or about a zillion other places. Even your host should have something that should run.

http://www.activestate.com/Products/ActivePerl/
Quote Reply
Re: [ozunderground] (WIN2K) - CGI error :: Can't locate CGI.pm in @INC In reply to
TURN OFF CAPSLOCK Wink

The error means your server does not have CGI.pm installed.

Your host should be the first point of contact regarding missing module errors.

If you paste the error into an email and send it off to their support team they should be able to fix it for you within minutes, if they don't I'd consider moving hosts. CGI.pm is one of (if not the most) commonly used perl modules available.

If they don't know how to install it tell them to type:

ppm install CGI

...from the command prompt Smile

Last edited by:

Paul: Oct 16, 2002, 1:35 PM