天天看點

【物聯網】OpenWrt編譯出現Unable to find remote helper for 'https'問題

搞了一天了,編譯的時候,總是出現 fatal: unable to find remote helper for 'https'這樣的錯誤。今天終于解決了。

今天知道問題的原因了,是因為/usr/local/libexec/git-core路徑沒在

path 環境變量中。

這導緻裡面的 git-remote-https, git-remote-http 這些得不到執行。是以 git 所表現出來的功能不全。

解決辦法是:将

/usr/local/libexec/git-core 納入 path,至少在使用 git 之前,設定一下path。

最後一行添加如下:

 export path=/usr/local/libexec/git-core:$path

重新開機或者重新登入即可是環境變量生效