“fatal:unable to find remote helper for 'https'”error when git clone

eoigrqb6  于 12个月前  发布在  Git
关注(0)|答案(1)|浏览(204)
  • Git 2.32.0* 是从Termux proot-distro debian(bookworm)的源代码安装的

我使用以下命令输入proot:proot-distro --isolated --user nonroot debian
Git安装:

make configure
./configure
make
make install prefix=git DESTDIR=~/installations/installed/

字符串
我安装在这样一个文件夹,因为我不想阻塞系统
在此之前,我安装了依赖项:

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'


当我运行git clone时,出现以下错误:

warning: templates not found in git/git/share/git-core/templates
fatal: unable to find remote helper for 'https'


注意:从apt安装的 git 不会产生错误,并且可以正常工作
类似的问题没有一个能帮助我得到他们的答案.也许有人能给予诊断信息而不是解决方案,因为如果我必须重新编译,我将不得不等待很长时间.但解决方案可能没有帮助
一些常见答案的失败:

  • curl-devel未安装(或Debian中的libcurl 4-gnutls-dev)

通过apt进行安装:

apt list --installed | grep libcurl
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libcurl3-gnutls/stable-security,now 7.88.1-10+deb12u4 arm64 [installed,automatic]
libcurl4-gnutls-dev/stable-security,now 7.88.1-10+deb12u4 arm64 [installed]
libcurl4/stable-security,now 7.88.1-10+deb12u4 arm64 [installed,automatic]


检查以下错误消息的发生情况

configure:22159: result: no
configure:22184: WARNING: libcurl development lib not found. On Debian this is found in libcurl4-gnutls-dev. On RHEL5/Fedora11 it's in curl-devel. On RHEL6/Fedora12 it's in libcurl-devel.
configure:22703: checking for libsqlite3
configure:22738: gcc -std=gnu99 -o conftest -I/usr/include/curl -I/home/praveen/LIs/nosql/membase-server_src/install/include -L/home/praveen/LIs/nosql/membase -server_src/install/lib conftest.c -lsqlite3 >&5
conftest.c:50:27: fatal error: sqlite3.h: No such file or directory


config.log中:

cat config.log | grep "libcurl development lib not found"


(无)

  • git exec路径不存在

git --exec-path

git/git/libexec/git-core


文件夹installations/installed/git/git/libexec/git-core及其内容存在。(installations/installed/git/binPATH 中)

scyqe7ek

scyqe7ek1#

帮助我的是在安装过程中没有使用DESTSTALVE
你可以先在前缀中指定从DESTRENT开始的路径,然后用前缀粘合它,一切就如你所愿了

相关问题