首页 > 学院 > 开发设计 > 正文

记一次git fatal: Unable to find remote helper for 'https'问题的解决

2019-11-08 03:17:29
字体:
来源:转载
供稿:网友

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


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表