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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby rhl » 24. September 2004 22:31

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]
rhl
 
Posts: 4
Joined: 05. June 2004 07:33

Postby rhl » 24. September 2004 23:21

I sorted out the problem by installing

ActivePerl-5.6.1.638-MSWin32-x86.zip


sorry to have botherd the board.
rhl
 
Posts: 4
Joined: 05. June 2004 07:33

ActivePerl needs to register

Postby chanio » 29. September 2004 18:38

: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 :( .
Gallactic Firewall
User avatar
chanio
 
Posts: 72
Joined: 18. March 2003 22:05
Location: Argentina

Postby rhl » 29. September 2004 22:01

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.
rhl
 
Posts: 4
Joined: 05. June 2004 07:33

Postby dobbelina » 15. March 2005 06:40

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.
dobbelina
 
Posts: 17
Joined: 14. March 2005 09:33

Postby dobbelina » 16. March 2005 07:21

Issue solved, i did as the author of this post and installed the
active perl package, now it works :D
dobbelina
 
Posts: 17
Joined: 14. March 2005 09:33


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 140 guests