当前位置: 代码迷 >> 综合 >> 解决MHA报错Can‘t locate Log/Dispatch.pm … cal/share/perl5……at /usr/local/bin/masterha_check_ssh line 25.
  详细解决方案

解决MHA报错Can‘t locate Log/Dispatch.pm … cal/share/perl5……at /usr/local/bin/masterha_check_ssh line 25.

热度:6   发布时间:2024-02-20 03:35:36.0

配置MHA高可用集群的报错

masterha_check_ssh --conf=/data/mha/app1.cnf验证ssh远程是报错

[root@localhost ~]# masterha_check_ssh -conf=/etc/masterha/app1.cnf
Can't locate Log/Dispatch.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/local/share/perl5/MHA/SSHCheck.pm line 29.
BEGIN failed--compilation aborted at /usr/local/share/perl5/MHA/SSHCheck.pm line 29.
Compilation failed in require at /usr/local/bin/masterha_check_ssh line 25.
BEGIN failed--compilation aborted at /usr/local/bin/masterha_check_ssh line 25.

出现这种问题是因为缺少perl-Mail-Sender和 perl-Log-Dispatch这两个语言环境

解决方法:

[root@localhost ~]# yum install perl-Mail-Sender
[root@localhost ~]# yum install perl-Log-Dispatch
  相关解决方案