重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
本篇文章给大家分享的是有关在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 /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模块时报错,小编相信有部分知识点可能是我们日常工作会见到或用到的。希望你能通过这篇文章学到更多知识。更多详情敬请关注创新互联-成都网站建设公司行业资讯频道。