Why can't mysqldumpslow.pl find any Perl modules on Windows? -
I'm trying to parse the MYSQL slow query log from the command line.
On entering this:
Set PATH = G: \ xampp \ perl \ bin \;% PATH% cd / d g: \ xampp \ mysql \ scripts Perl mysqldumpslow.pl -sc -t 10
returns a shell error in @inc. PM can not get (@inc include:.) On line at mysqldumpslow.pl. Entry failed
In the xampp perl
directory, there is only one file perl.exe
.
Am I losing perar modules / libraries? Do I need to read this log file?
An action must be followed by strict.pm
in your perl installation and the environment To add to the variable, or perl
to the -i / path / to / strict.pm / directory
option (see).
If you get more dissatisfied dependencies, you can continue adding the directory to your program with the PERL5LIB
or additional -i
options.
(Although in the end you probably might have tired of it and correct Pearl.)
UPDATE : 1.7.3 XAMPP delivery, all the Pearl Library files are located under xampp \ perl \ lib
and xampp \ perl \ site \ lib
, so
Perl -II: / Xampp / perl / lib -ig: / xampp / perl / site / lib mysqldumpslow.pl -sc -t 10
Maybe you need to do this. YMMV if you have old XAMPP delivery.
Comments
Post a Comment