1. 程式人生 > >Can't locate Log/Dispatch.pm in @INC

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

郵件 app 配置 onf failed vendor 模塊 true led

記錄一下配置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