Raised This Month: $214 Target: $400

hlstats-awards.pl wont work

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Join Date: Jul 2007
Old 03-28-2014 , 19:18   hlstats-awards.pl wont work
Reply With Quote #1

I have a big problem with hlstats-awards.pl. Daemon runs just fine, stats is great. Evereything basically works. BUT! Every time when hlstats-awards.pl runs from a cron job, i get an error message

Can't locate .//ConfigReaderSimple.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./scripts/hlstats-awards.pl line 61.
I've seen on this forums that i had to change
to full directory. When i did that, still daemon and everything works great but now i get error message when trying to run awards.pl

-- Connecting to MySQL database 'belgrade_stats' on 'localhost' as user 'belgrade_stats' ... install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 4) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, SQLite, Sponge.
at /home/belgrade/scripts//HLstats.plib line 152
If there is a problem with DBD::mysql perl module, the daemon couldn't work! Why do i get this?

Last edited by demonicserver; 03-28-2014 at 19:19.
demonicserver is offline
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 03-28-2014 , 19:50   Re: hlstats-awards.pl wont work
Reply With Quote #2

you need to install the module, google around for help.
WildCard65 is offline
Join Date: Jul 2007
Old 03-29-2014 , 03:58   Re: hlstats-awards.pl wont work
Reply With Quote #3

DBD:mysql module is installed. If not, the daemon wouldn't work, because it, aswell requires DBD:mysql module.

Nevermind, i've got it to work.
My perl modules are installed in other directory, but the script was reading from default directories and couldn't find it there. So before

use Getopt::Long;
use DBI;
use Encode;
in hlstats-awards.pl I've added a line
use lib '/home/belgrade/perl/usr/lib/perl5/x86_64-linux-thread-multi';
So now, the script reads the modules from that directory other than default.

Last edited by demonicserver; 03-29-2014 at 04:54.
demonicserver is offline

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 09:15.

Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode