I\'m building git on a pretty minimal system (Ubuntu 16.04 docker image) without using the package manager (except for wget, xz-utils,
In CentOS7, I encounter this issue, I find I should install the perl-devel firstly:
yum install perl-devel
Then retry it.
using ./configure --with-perl=/usr/local/bin/perl for git works, however it's unclear for me why /usr/local/bin/perl isn't picked up before /usr/bin/perl if PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin.
The cpan ExtUtils::MakeMaker isn't necessary after adding --with-perl.