Can't locate Log/Dispatch.pm in @INC /Makefile out-of-date with respect to Makefile.PL

Posted 运维的自我修养

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Can't locate Log/Dispatch.pm in @INC /Makefile out-of-date with respect to Makefile.PL相关的知识,希望对你有一定的参考价值。

mha check的时候报错问题解决:
 
#  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
 
Makefile out-of-date with respect to Makefile.PL
[这个问题是由于系统时间不正确造成的]
 
/usr/bin/perl "-Iinc" Makefile.PL --config= --installdeps=Parallel::ForkManager,0
^[[A*** Installing dependencies...
*** Installing Parallel::ForkManager...
Running [/usr/bin/perl /usr/bin/cpanp-run-perl /root/.cpanplus/5.10.1/build/Parallel-ForkManager-1.19/Makefile.PL]...
Warning: prerequisite Test::More 0.94 not found. We have 0.92.
Warning: prerequisite Test::Warn 0 not found.
Writing Makefile for Parallel::ForkManager
Running [/usr/bin/perl /usr/bin/cpanp-run-perl /root/.cpanplus/5.10.1/build/Test-Simple-1.302086/Makefile.PL]...
Writing Makefile for Test::Simple
[ERROR] MAKE failed: No such file or directory make[1]: Entering directory `/root/.cpanplus/5.10.1/build/Test-Simple-1.302086‘
make[1]: Warning: File `Makefile.PL‘ has modification time 1.3e+06 s in the future
Makefile out-of-date with respect to Makefile.PL
Cleaning current config before rebuilding Makefile...
make -f Makefile.old clean > /dev/null 2>&1
/usr/bin/perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Test::Simple
==> Your Makefile has been rebuilt. <==
==> Please rerun the make command.  <==
false
make[1]: Leaving directory `/root/.cpanplus/5.10.1/build/Test-Simple-1.302086‘
make[1]: *** [Makefile] Error 1


[ERROR] Unable to create a new distribution object for ‘Test::More‘ -- cannot continue

[ERROR] Failed to install ‘Test::More‘ as prerequisite for ‘Parallel::ForkManager‘

[ERROR] Unable to satisfy prerequisites for ‘Parallel::ForkManager‘ -- aborting install

[ERROR] Unable to create a new distribution object for ‘Parallel::ForkManager‘ -- cannot continue

Key ‘ok‘ () is of invalid type for ‘CPANPLUS::Backend::RV::new‘ provided by CPANPLUS::Backend::__ANON__ at /usr/share/perl5/CPANPLUS/Backend.pm line 398
*** Parallel::ForkManager installation cancelled.
*** Module::AutoInstall installation finished.
Appending installation info to /usr/lib64/perl5/perllocal.pod

系统时间不对导致,调整时间 ntpdate ntp.api.bz

  

以上是关于Can't locate Log/Dispatch.pm in @INC /Makefile out-of-date with respect to Makefile.PL的主要内容,如果未能解决你的问题,请参考以下文章

Solve Perl Can't locate getopts.pl

lnmp升级nginx引起的 nginx:Can't locate nginx.pm 错误

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

hbase.client.RetriesExhaustedException: Can't get the locations hive关联Hbase查询报错

python INFO: Can't locate Tcl/Tk libs and/or headers

学员问Can't locate DBD/SQLite.pm in @INC 怎么解决?