ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 在CentOS 安装perl模块时报错汇总

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

原创 Linux操作系统 作者:yangi1314 时间:2017-12-08 14:33:40 0 删除 编辑

在安装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/,如需转载,请注明出处,否则将追究法律责任。

下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2013-07-11

  • 博文量
    63
  • 访问量
    198908