zoukankan      html  css  js  c++  java
  • 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
    

      

  • 相关阅读:
    图片显示、PNG透明
    表格边框
    PowerDesigner 16安装注意事项
    web.config中httpRunTime的属性(转)
    禅道程序员的10条原则转载为了不忘
    MS SQL 小时分钟加减 运算 摘
    CASE WHEN THEN 小结
    Java集合框架总结(2)——Set接口的使用
    Java集合框架的知识总结(1)
    Hadoop1.2.0开发笔记(六)
  • 原文地址:https://www.cnblogs.com/topicjie/p/7190210.html
Copyright © 2011-2022 走看看