首页 > 代码库 > Can't locate Log/Dispatch.pm in @INC
Can't locate Log/Dispatch.pm in @INC
记录一下配置mha的时候遇到的错误,使用perl模块发送邮件的时候报以下错误:
# masterha_check_ssh --conf=/data/mha/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.
解决方法:
yum install perl-Mail-Sender
yum install perl-Log-Dispatch
Can't locate Log/Dispatch.pm in @INC
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。