源码编译Git 2.32.0执行git clone报https远程助手未找到错误求助
问题诊断请求:源码编译Git 2.32.0后
git clone报错 环境与安装信息
- 运行环境:Termux proot-distro 下的Debian bookworm,进入环境命令:
proot-distro --isolated --user nonroot debian - Git版本:2.32.0(源码编译安装)
- 安装依赖命令:
sudo apt install dh-autoreconf libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev install-info # 系统提示:Note, selecting 'zlib1g-dev' instead of 'libz-dev'
- 编译安装步骤:
make configure ./configure make make install prefix=git DESTDIR=~/installations/installed/
- 安装路径说明:选择该路径是为了避免占用系统目录,且
~/installations/installed/git/bin已加入系统PATH
报错内容
执行git clone时出现如下错误:
warning: templates not found in git/git/share/git-core/templates fatal: unable to find remote helper for 'https'
注:通过apt安装的Git可正常运行
已排查的无效方案
- 检查libcurl开发库:确认libcurl4-gnutls-dev已安装,且config.log中无相关缺失警告
- 检查git执行路径:
git --exec-path返回git/git/libexec/git-core,对应目录及内容均存在
需求
因重新编译耗时久,希望获取诊断信息而非直接解决方案
内容的提问来源于stack exchange,提问作者Empty
相关产品推荐
相关产品推荐

