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安裝而采用默認(rèn)安裝,可以調(diào)用curl提供的工具查看安裝的prefix:
curl-config –prefix
默認(rèn)安裝路徑為/usr。
如果之前已經(jīng)成功安裝git,需要指定curl安裝路徑重新安裝git:
./configure –prefix=/usr/local/git –with-curl=/usr make && make install
然后再執(zhí)行g(shù)it clone成功!
參考鏈接:http://stackoverflow.com/questions/8329485/git-clone-fatal-unable-to-find-remote-helper-for-https
新聞熱點
疑難解答