linux编译安装软件git报错Can’t locate ExtUtils/MakeMaker.pm in @INC (@INC contains: 解决办法

云海天教程整理,转载请注明出处。
今天在linux的centos 6下安装git编译的时候发生报错:

[[email protected] git-2.4.5]# make
    SUBDIR perl
/usr/bin/perl Makefile.PL PREFIX='/usr/local/git' INSTALL_BASE='' --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-Embed -y
安装完以后重新编译解决问题。特此记录。

hmoban主题是根据ripro二开的主题,极致后台体验,无插件,集成会员系统
自学咖网 » linux编译安装软件git报错Can’t locate ExtUtils/MakeMaker.pm in @INC (@INC contains: 解决办法