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
    

      

  • 相关阅读:
    [Java]用于将链表变成字符串并在元素之间插入分隔符的有用函数“String.join”
    Sql语法树示例 select username, ismale from userinfo where age > 20 and level > 5 and 1 = 1
    [Java]一段尚未雕琢的分词代码
    day44_Oracle学习笔记_03
    day43_Oracle学习笔记_02
    WinXP系统中的Oracle数据库如何以管理员身份登录
    Oracle 10G安装指导
    20个Linux服务器性能调优技巧
    Linux 上使用 Gmail SMTP 服务器发送邮件通知
    Netdata Linux下性能实时监测工具
  • 原文地址:https://www.cnblogs.com/topicjie/p/7190210.html
Copyright © 2011-2022 走看看