git clone开源项目的时候报错“fatal: Unable to find remote helper for ‘https”。
原因是git的依赖库libcurl没有安装,可以下载源码安装或者yum安装:
http://curl.haxx.se/download.html 或者
yum install curl-devel
如果curl没有指定prefix安装而采用默认安装,可以调用curl提供的工具查看安装的prefix:
curl-config –prefix
默认安装路径为/usr。
如果之前已经成功安装git,需要指定curl安装路径重新安装git:
./configure –prefix=/usr/local/git –with-curl=/usr
make && make install
然后再执行git clone成功!
参考链接:http://stackoverflow.com/questions/8329485/git-clone-fatal-unable-to-find-remote-helper-for-https
本文解决了一个常见的gitclone问题,即“fatal:Unabletofindremotehelperfor‘https’”的错误。原因是git依赖的libcurl未安装。提供了两种安装libcurl的方法,并详细说明了如何配置git以确保正确使用已安装的libcurl。
2326

被折叠的 条评论
为什么被折叠?



