Page 1 of 1

Can't locate CGI.pm in @INC (@INC contains: .) at

PostPosted: 24. September 2004 22:31
by rhl
I was hoping someone here could help me.

here is my error log

C:/redhotlive/xampp/cgi-bin/hub.cgi line 37.\r
[Fri Sep 24 06:56:05 2004] [error] [client 192.168.1.247] Premature end of script headers: hub.cgi
[Fri Sep 24 06:56:05 2004] [error] [client 192.168.1.247] Can't locate CGI.pm in @INC (@INC contains: .) at C:/redhotlive/xampp/cgi-bin/hub.cgi line 37.\r
[Fri Sep 24 06:56:05 2004] [error] [client 192.168.1.247] BEGIN failed--compilation aborted at C:/redhotlive/xampp/cgi-bin/hub.cgi line 37.\r


here is my script until line 40


Code: Select all
#!c:/redhotlive/xampp/perl/bin/perl.exe   
   
# CHANGE ABOVE LINE ACCORDING TO YOUR OS AND WEB SERVER

#############################################################
#                              #
# Ptokax Hub Stats via web page               #
# wooshman@thelandofkaraoke.ath.cx               #
# landofkaraoke.ath.cx                     #
# landofkaraoke2.ath.cx                     #
#                               #
#                              #
# Displays Current online users, owners/masters, ops,      #
# vips and regs.  Shows if the hub is on or offline.      #
# Shows number of users in the hub.               #
# Also displays all Permbanned users.            #
#                              #
# This script must be used in conjuntion with webstats.lua   #
# by WooshMan to allow for the hub status and online      #
# users to be displayed.  Without that only pbanned       #
# users will be displayed and reg'ed members of the      #
# hub                              #   
#                              #
# Version: 1.0   -   Date: 12 March 2004         #
#                              #
# Email wooshman@thelandofkaraoke.ath.cx for          #
# suggestions, bugs or script addition requests.      #
#                              #
# Please keep this header intact.               #
#                              #
# INTRUCTIONS                        #
# Change the paths and locations below and also your      #
# colour preferences in page templates.            #
# You do not need to change anything below that.      #
#############################################################

use CGI;
use CGI::Carp qw(fatalsToBrowser);
use LWP::UserAgent;
my $cgi = new CGI;





If you need anymore information please tell me


Thanks Jason[/quote]

PostPosted: 24. September 2004 23:21
by rhl
I sorted out the problem by installing

ActivePerl-5.6.1.638-MSWin32-x86.zip


sorry to have botherd the board.

ActivePerl needs to register

PostPosted: 29. September 2004 18:38
by chanio
:lol:
Did you try using PPM or PPM3? It doesn't work until ActivePerl gets registered in the WinReg.
See the text file in the xampp/perl folder. Those should be the registered strings.
As you did, it's better to install ActivePerl over your XAMPP perl, but find out how to do it over that folder. I have'nt find out how. So I installed another AP in another folder :( .

PostPosted: 29. September 2004 22:01
by rhl
Im not sure exactly what you are saying.

I renamed the current perl folder to perlxammp and the installed activeperl into a folder called perl so the path didnt change for anything else I have running.

PostPosted: 15. March 2005 06:40
by dobbelina
I'm getting the exact same error when trying to run some cgi scripts.
This is confusing, i have the standard version
XAMPP Windows 1.4.12 (not lite) installed.
And according to the manual "MiniPerl 5.8.3" is installed ?
Is this not enough to run cgi scripts ?
Should i d/l that "Perl 1.4.12" addon from the xampp site or should i go for the "ActivePerl" as the starter of this thread ?
If this is a configuration issue, please someone gimme a hand.

PostPosted: 16. March 2005 07:21
by dobbelina
Issue solved, i did as the author of this post and installed the
active perl package, now it works :D