您的位置:首页 > 理论基础 > 计算机网络

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

2017-02-17 14:15 567 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  git curl