You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

源码编译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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.05 04:47:38