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

 

版权声明:
作者:XIAOKE
链接:https://www.qkeke.com/archives/809.html
来源:小可博客
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>