[PERL] xampp + hlstats?

X-up

Lt. Junior Grade
Registriert
März 2004
Beiträge
364
ich benutze das webserver komplettpaket xampp

ich möchte nun hlstats laufen lassen!


beim starten von perl bekomme ich allerdings einen fehler:

C:\apachefriends\xampp\perl\bin>perl c:/apachefriends/xampp/htdocs/hlstats/hlsta
ts.pl
Can't locate strict.pm in @INC (@INC contains: .) at c:/apachefriends/xampp/htdo
cs/hlstats/hlstats.pl line 23.
BEGIN failed--compilation aborted at c:/apachefriends/xampp/htdocs/hlstats/hlsta
ts.pl line 23.

weiss aber nicht was das bedeutet
 
Da ist ein Syntax-Fehler auf Zeile 23, welcher das nun ist kann ich dir nicht sagen da ich den Quellcode erst sehen müsste.
 
Code:
#!/usr/bin/perl
#
# HLstats - Real-time player and clan rankings and statistics for Half-Life
# [url]http://sourceforge.net/projects/hlstats/[/url]
#
# Copyright (C) 2001  Simon Garner
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#

use strict;            <--- Z 23
no strict 'vars';

##
## Settings
##

# $opt_configfile - Absolute path and filename of configuration file.
$opt_configfile = "./hlstats.conf";

# $opt_libdir - Directory to look in for local required files
#               (our *.plib, *.pm files).
$opt_libdir = "./";
 
# $opt_libdir - Directory to look in for local required files
# (our *.plib, *.pm files).
$opt_libdir = "./";


Du hast du die .pm und die .plib nicht in die Wurzel von xampp hineinkopiert(steht auch in der Fehlermeldung).
 
Zuletzt bearbeitet:
kann ich den pfad einfach eintragen?

Code:
$opt_libdir = "./htdocs/hlstats/";


EDIT: ich besitze gar keine strict.pm
... wenn die in der hlstats.pl drinstehen werden sie wohl beim hlstats paket dabei sein, aber sind sie nicht
 
Zuletzt bearbeitet:
ja kannst du. Wenn du die Dateien nicht hast dann einfach die Zeile auskommentieren.
 
nun läuft es einigermaßen...

hier seht ihr dass immer noch keine daten gespeichert werden... 0 players on 1 server...


ich bekomme beim starten von hlstats.pl weiterhin einen fehler:

Code:
C:\hlstats>perl hlstats.pl
++ HLstats 1.32 starting...

-- Opening UDP listen socket on port 27500 ... opened OK
-- Connecting to MySQL database 'hlstats' on 'localhost'
 'C:\mysql\\share\charsets\?.conf' not found (Errcode: 2)
Character set '#48' is not a compiled character set and i
'C:\mysql\\share\charsets\Index' file
connected OK

++ HLstats is now running (Normal mode, debug level 1).


wenn es richtig funktioniert müsste es so aussehen:

Code:
++ HLstats 1.02 starting... 
-- Opening UDP listen socket on port 27500 ... opened OK
-- Connecting to MySQL database 'hlstats' on 'localhost' as user 'hlstats' ...
connected OK

++ HLstats is now running (Normal mode, debug level 1).

:/
 
Zuletzt bearbeitet:
jetzt hat er ein problem mit den Zeichensatz von mysql. Was das jetzt aber genau ist kann ich dir jetzt nicht sagen.
 
hab dieses problem behoben indem ich eine neuere mysql version darüber installiert habe... funktioniere tut es aber immer noch nicht :(
 
Zurück
Oben