解決Can't locate ExtUtils/MakeMaker.pm in @INC報(bào)錯(cuò)
在安裝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ù)講解
相關(guān)文章
mysql數(shù)據(jù)損壞,如何通過(guò)ibd和frm文件批量恢復(fù)數(shù)據(jù)庫(kù)數(shù)據(jù)
這篇文章主要介紹了mysql數(shù)據(jù)損壞,如何通過(guò)ibd和frm文件批量恢復(fù)數(shù)據(jù)庫(kù)數(shù)據(jù)問(wèn)題,具有很好的參考價(jià)值,希望對(duì)大家有所幫助,如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2023-08-08
MySql存儲(chǔ)過(guò)程學(xué)習(xí)知識(shí)小結(jié)
這篇文章主要介紹了MySql存儲(chǔ)過(guò)程學(xué)習(xí)知識(shí)小結(jié)的相關(guān)資料,非常不錯(cuò),具有參考借鑒價(jià)值,需要的朋友可以參考下2016-06-06
SQL如何按照年月來(lái)查詢(xún)數(shù)據(jù)問(wèn)題
這篇文章主要介紹了SQL如何按照年月來(lái)查詢(xún)數(shù)據(jù)問(wèn)題,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2023-02-02
MySQL最新驅(qū)動(dòng)com.mysql.cj.jdbc.Driver及配置過(guò)程
這篇文章主要介紹了MySQL最新驅(qū)動(dòng)com.mysql.cj.jdbc.Driver及配置過(guò)程,具有很好的參考價(jià)值,希望對(duì)大家有所幫助,如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2023-08-08
Mysql 存在多條數(shù)據(jù)時(shí)如何按時(shí)間取最新的那一組數(shù)據(jù)(思路詳解)
這篇文章主要介紹了Mysql 存在多條數(shù)據(jù)時(shí)如何按時(shí)間取最新的那一組數(shù)據(jù),本文給大家分享兩種思路結(jié)合實(shí)例代碼給大家介紹的非常詳細(xì),需要的朋友可以參考下2024-04-04
mysql死鎖(dead lock)與鎖等待(lock wait)的出現(xiàn)解決
死鎖和鎖等待是數(shù)據(jù)庫(kù)運(yùn)維中常見(jiàn)的問(wèn)題,區(qū)別在于死鎖會(huì)自動(dòng)解除,而鎖等待需要手動(dòng)處理,本文就來(lái)介紹一下mysql死鎖(dead lock)與鎖等待(lock wait),感興趣的可以了解一下2024-09-09
MySQL skip-character-set-client-handshake導(dǎo)致的一個(gè)字符集問(wèn)題
這篇文章主要介紹了MySQL skip-character-set-client-handshake導(dǎo)致的一個(gè)字符集問(wèn)題,需要的朋友可以參考下2014-07-07

