今天 安装 MHA,管理节点选 mha4mysql-manager-0.58,在初始化时报错
[root@Server3 ~]# masterha_check_repl --conf=/etc/masterha/app1.cnf
Can't locate Params/Validate.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 /usr/share/perl5/vendor_perl/Log/Dispatch.pm line 9.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Log/Dispatch.pm line 9.
Compilation failed in require at /usr/local/share/perl5/MHA/MasterMonitor.pm line 28.
BEGIN failed--compilation aborted at /usr/local/share/perl5/MHA/MasterMonitor.pm line 28.
Compilation failed in require at /usr/local/bin/masterha_check_repl line 25.
BEGIN failed--compilation aborted at /usr/local/bin/masterha_check_repl line 25.
经过一番查找,原来是在安装时下面的这包造成的,删掉,从新yum 安装,问题解决。不安装依赖包和强行安装会给后面的工作挖坑。
rpm -ivh perl-Params-Validate-1.80.0-2.mga4.x86_64.rpm --force --nodeps