编译git遇到的perl-ExtUtils-MakeMaker错误

[zhujiang@localhost git-2.5.2]$ make
    SUBDIR perl
/usr/bin/perl Makefile.PL PREFIX='/usr' INSTALL_BASE='' --localedir='/usr/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

查看相应出错的地方,vi perl/Makefile.PL

use ExtUtils::MakeMaker;

猜测应该是缺少对应的包,安装上即可

sudo yum install perl-ExtUtils-MakeMaker


©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页