遇到问题

centos安装git的时候出现下面的错误提示:

  1. usr/bin/perl Makefile.PL PREFIX='/usr/local/git' '' --localedir='/usr/local/git/share/locale'
  2. 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.
  3. BEGIN failed--compilation aborted at Makefile.PL line 3.
  4. make[1]: *** [perl.mak] Error 2
  5. make: *** [perl/perl.mak] Error 2

解决问题

  1. yum install perl-ExtUtils-MakeMaker