码迷,mamicode.com
首页 > 其他好文 > 详细

Can't locate Log/Dispatch.pm in @INC

时间:2017-06-12 16:18:30      阅读:232      评论:0      收藏:0      [点我收藏+]

标签:log   ssh   记录   方法   locate   blog   logs   usr   conf   

记录一下配置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

标签:log   ssh   记录   方法   locate   blog   logs   usr   conf   

原文地址:http://www.cnblogs.com/topicjie/p/6993274.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!