在安裝mha4mysql時(shí),大概步驟是:解壓,perl Makefile.PL,make, make install。在執(zhí)行 perl Makefile.PL 報(bào)錯(cuò)如下,簡(jiǎn)單記錄一下解決方法
# perl Makefile.PL
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: inc /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 inc/Module/Install/Can.pm line 5.
BEGIN failed--compilation aborted at inc/Module/Install/Can.pm line 5.
Compilation failed in require at inc/Module/Install.pm line 307.
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: inc /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 inc/Module/Install/Makefile.pm line 4.
BEGIN failed--compilation aborted at inc/Module/Install/Makefile.pm line 4.
Compilation failed in require at inc/Module/Install.pm line 307.
Can't locate ExtUtils/MM_Unix.pm in @INC (@INC contains: inc /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 inc/Module/Install/Metadata.pm line 322.
安裝依賴(lài)
yum install perl-ExtUtils-MakeMaker
繼續(xù)報(bào)錯(cuò)
# perl Makefile.PL
*** Module::AutoInstall version 1.06
*** Checking for Perl dependencies...
Can't locate CPAN.pm in @INC (@INC contains: inc /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 inc/Module/AutoInstall.pm line 304.
yum -y install perl-CPAN
總結(jié)
以上就是這篇文章的全部?jī)?nèi)容了,希望本文的內(nèi)容對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,謝謝大家對(duì)腳本之家的支持。如果你想了解更多相關(guān)內(nèi)容請(qǐng)查看下面相關(guān)鏈接
您可能感興趣的文章:- MySQL left join操作中on和where放置條件的區(qū)別介紹
- SQL語(yǔ)句執(zhí)行深入講解(MySQL架構(gòu)總覽->查詢(xún)執(zhí)行流程->SQL解析順序)
- Mysql InnoDB引擎的索引與存儲(chǔ)結(jié)構(gòu)詳解
- PHP的mysqli_thread_id()函數(shù)講解
- PHP的mysqli_stmt_init()函數(shù)講解
- PHP的mysqli_stat()函數(shù)講解
- PHP的mysqli_ssl_set()函數(shù)講解
- PHP的mysqli_sqlstate()函數(shù)講解
- PHP的mysqli_set_charset()函數(shù)講解
- PHP的mysqli_select_db()函數(shù)講解