本篇文章給大家分享的是有關(guān)在CentOS 安裝perl模塊時報錯,小編覺得挺實用的,因此分享給大家學習,希望大家閱讀完這篇文章后可以有所收獲,話不多說,跟著小編一起來看看吧。
在安裝perl的模塊時候,出現(xiàn)下面錯誤:
1、Can't locate ExtUtils/MakeMaker.pm in @INC
解決方法如下:
cd /root
wget http://files.directadmin.com/services/9.0/ExtUtils-MakeMaker-6.31.tar.gz
tar xvzf ExtUtils-MakeMaker-6.31.tar.gz
cd ExtUtils-MakeMaker-6.31
perl Makefile.PL
make
make install
2、Can't locate Digest/MD5.pm in @INC
Can't locate Digest/MD5.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 - line 693.
解決方法:
yum install perl-Digest-MD5
3、Can't locate ExtUtils/Manifest.pm in @INC
[root@localhost images]# cpanm install DBD::mysql
--> Working on install
Fetching /tupian/20230522/install-0.01.tar.gz ... OK
==> Found dependencies: ExtUtils::MakeMaker
--> Working on ExtUtils::MakeMaker
Fetching /tupian/20230522/ExtUtils-MakeMaker-7.30.tar.gz ... OK
Configuring ExtUtils-MakeMaker-7.30 ... OK
Can't locate ExtUtils/Manifest.pm in @INC (@INC contains: FatPacked::28224392=HASH(0x1aeab88) /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/bin/cpanm line 132.
解決方法:
yum install perl-ExtUtils-MakeMaker -y
以上就是在CentOS 安裝perl模塊時報錯,小編相信有部分知識點可能是我們?nèi)粘9ぷ鲿姷交蛴玫降?。希望你能通過這篇文章學到更多知識。更多詳情敬請關(guān)注創(chuàng)新互聯(lián)-成都網(wǎng)站建設(shè)公司行業(yè)資訊頻道。