在CentOS 安装perl模块时报错汇总


在安装perl的模块时候,出现下面错误:
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 http://www.cpan.org/authors/id/D/DA/DAGOLDEN/install-0.01.tar.gz ... OK
==> Found dependencies: ExtUtils::MakeMaker
--> Working on ExtUtils::MakeMaker
Fetching http://www.cpan.org/authors/id/B/BI/BINGOS/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

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/205377/viewspace-2148457/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/205377/viewspace-2148457/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值