问题描述
在 Linux 计算机上,如果构建 Git 时未先安装 libcurl4-openssl-dev 包,则会出现此错误。发生这种情况时,MAKE 命令不知道构建 http 帮助程序,它将位于 $GIT_ROOT/libexec/git-core/git-remote-https 中
解决方案
出现此问题,请检查是否安装了 libcurl4-openssl-dev 软件包。这与二进制 curl 包不同。如果您在安装 Git 后安装了此软件包,并且继续收到此错误,则可能需要删除并重新安装 Git
sudo apt-get install libcurl4-openssl-dev build-essential
git clone https://github.com/git/git
cd git
git checkout v1.8.4 (or the current version)
./configure with-openssl
make prefix=/usr/local all
sudo make prefix=/usr/local install