While I was trying install the latest git by compiling the source, I got the following error
12345 /usr/bin/perl Makefile.PL PREFIX='/usr/local' INSTALL_BASE='' --localedir='/usr/local/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 2make: *** [perl/perl.mak] Error 2
Turns out the Perl headers are missing, using yum to install it solve the problem
1 | yum install perl-devel |
Update 2015-03-05:
Some said it’s related to the CPAN module, I have no idea what it is, if the above not work, try also install the CPAN by:
1 | yum install perl-CPAN |
10 replies on ““Can’t locate ExtUtils/MakeMaker.pm” while compile git”
Thanks!
wow!
thanks!!!
Thank you!
Nice Thx
Thanks!
thanks a lot
Thank you. “yum install perl-devel” worked for me 🙂
thanks mate
Latest update: you only need this “yum install gcc perl-ExtUtils-MakeMaker”
Super it work like charm