I\'m building git on a pretty minimal system (Ubuntu 16.04 docker image) without using the package manager (except for wget, xz-utils,
git
wget
xz-utils
In CentOS7, I encounter this issue, I find I should install the perl-devel firstly:
perl-devel
yum install perl-devel
Then retry it.