CentOS 编译安装 git 或 rrdtool 时报错 Can’t locate ExtUtils/MakeMaker.pm…

报错文字

Can't locate ExtUtils/MakeMaker.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 Makefile.PL line 1.
BEGIN failed--compilation aborted at Makefile.PL line 1.
make[2]: *** [perl-piped] 错误 2
make[2]: Leaving directory `/root/rrdtool-1.6.0/bindings'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/root/rrdtool-1.6.0/bindings'
make: *** [all-recursive] 错误 1
usr/bin/perl Makefile.PL PREFIX='/usr/local/git' '' --localedir='/usr/local/git/share/locale'
Can't locate ExtUtils/MakeMaker.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 Makefile.PL line 3.
BEGIN failed--compilation aborted at Makefile.PL line 3.
make[1]: *** [perl.mak] Error 2
make: *** [perl/perl.mak] Error 2 

解决办法

yum install perl-ExtUtils-MakeMaker package

 

如果您喜欢本站,点击这儿 不花一分钱捐赠老基友

这些信息可能会帮助到你: 下载帮助

发表评论

邮箱地址不会被公开。 必填项已用*标注