MySQLTuner-perlを使ってみたかった

分けあってMySQLをチューニングする必要が有って色々とググってたら「MySQLTuner-perl」ってのがあるらしい

MySQLTuner-perl

実行しようとしたら

Can't locate Text/Template.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 ./mysqltuner.pl line 2816.
BEGIN failed--compilation aborted at ./mysqltuner.pl line 2816 (#1)
    (F) You said to do (or require, or use) a file that couldn't be
    found. Perl looks for the file in all the locations mentioned in @INC,
    unless the file name included the full path to the file.  Perhaps you
    need to set the PERL5LIB or PERL5OPT environment variable to say where
    the extra library is, or maybe the script needs to add the library name
    to @INC.  Or maybe you just misspelled the name of the file.  See
    perlfunc/require and lib.

Uncaught exception from user code:
        Can't locate Text/Template.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 ./mysqltuner.pl line 2816.
BEGIN failed--compilation aborted at ./mysqltuner.pl line 2816.
 at ./mysqltuner.pl line 2816

こんな感じに怒られた

# yum -y install cpan

# cpan
cpan[1]> install Text::Template


# ./mysqltuner.pl
Please enter your MySQL administrative login:

で実行できた

perl触ったこと無いからよくわからんかったのでメモ書き程度に

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です