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
新闻热点
疑难解答