【物联网】OpenWrt编译出现Unable to find remote helper for 'https'问题

简介:


搞了一天了,编译的时候,总是出现 fatal: Unable to find remote helper for 'https'这样的错误。今天终于解决了。

今天知道问题的原因了,是因为/usr/local/libexec/git-core路径没在 PATH 环境变量中。

deng@cecport:/usr/local/libexec/git-core$ pwd
/usr/local/libexec/git-core
deng@cecport:/usr/local/libexec/git-core$ ls
git                   git-count-objects             git-gui                 git-merge-subtree        git-remote             git-sh-setup
git-add               git-credential                git-gui--askpass        git-mergetool            git-remote-ext         git-stage
git-add--interactive  git-credential-cache          git-hash-object         git-mergetool--lib       git-remote-fd          git-stash
git-am                git-credential-cache--daemon  git-help                git-merge-tree           git-remote-ftp         git-status
git-annotate          git-credential-store          git-http-backend        git-mktag                git-remote-ftps        git-stripspace
git-apply             git-cvsexportcommit           git-http-fetch          git-mktree               git-remote-http        git-submodule
git-archimport        git-cvsimport                 git-http-push           git-mv                   git-remote-https       git-submodule--helper
git-archive           git-cvsserver                 git-imap-send           git-name-rev             git-remote-testpy      git-svn
git-bisect            git-daemon                    git-index-pack          git-notes                git-remote-testsvn     git-symbolic-ref
git-bisect--helper    git-describe                  git-init                git-p4                   git-repack             git-tag
git-blame             git-diff                      git-init-db             git-pack-objects         git-replace            git-tar-tree
git-branch            git-diff-files                git-instaweb            git-pack-redundant       git-repo-config        git-unpack-file
git-bundle            git-diff-index                git-interpret-trailers  git-pack-refs            git-request-pull       git-unpack-objects
git-cat-file          git-difftool                  git-log                 git-parse-remote         git-rerere             git-update-index
git-check-attr        git-difftool--helper          git-lost-found          git-patch-id             git-reset              git-update-ref
git-check-ignore      git-diff-tree                 git-ls-files            git-peek-remote          git-revert             git-update-server-info
git-check-mailmap     git-fast-export               git-ls-remote           git-prune                git-rev-list           git-upload-archive
git-checkout          git-fast-import               git-ls-tree             git-prune-packed         git-rev-parse          git-upload-pack
git-checkout-index    git-fetch                     git-mailinfo            git-pull                 git-rm                 git-var
git-check-ref-format  git-fetch-pack                git-mailsplit           git-push                 git-send-email         git-verify-commit
git-cherry            git-filter-branch             git-merge               git-quiltimport          git-send-pack          git-verify-pack
git-cherry-pick       git-fmt-merge-msg             git-merge-base          git-read-tree            git-shell              git-verify-tag
git-citool            git-for-each-ref              git-merge-file          git-rebase               git-sh-i18n            git-web--browse
git-clean             git-format-patch              git-merge-index         git-rebase--am           git-sh-i18n--envsubst  git-whatchanged
git-clone             git-fsck                      git-merge-octopus       git-rebase--interactive  git-shortlog           git-worktree
git-column            git-fsck-objects              git-merge-one-file      git-rebase--merge        git-show               git-write-tree
git-commit            git-gc                        git-merge-ours          git-receive-pack         git-show-branch        mergetools
git-commit-tree       git-get-tar-commit-id         git-merge-recursive     git-reflog               git-show-index
git-config            git-grep                      git-merge-resolve       git-relink               git-show-ref
deng@cecport:/usr/local/libexec/git-core$ 

这导致里面的 git-remote-https, git-remote-http 这些得不到执行。所以 git 所表现出来的功能不全。

解决办法是:将 /usr/local/libexec/git-core 纳入 PATH,至少在使用 git 之前,设置一下PATH。

deng@cecport:/usr/local/libexec/git-core$ vim ~/.bashrc
最后一行添加如下:
 export PATH=/usr/local/libexec/git-core:$PATH

重启或者重新登录即可是环境变量生效

相关实践学习
钉钉群中如何接收IoT温控器数据告警通知
本实验主要介绍如何将温控器设备以MQTT协议接入IoT物联网平台,通过云产品流转到函数计算FC,调用钉钉群机器人API,实时推送温湿度消息到钉钉群。
阿里云AIoT物联网开发实战
本课程将由物联网专家带你熟悉阿里云AIoT物联网领域全套云产品,7天轻松搭建基于Arduino的端到端物联网场景应用。 开始学习前,请先开通下方两个云产品,让学习更流畅: IoT物联网平台:https://iot.console.aliyun.com/ LinkWAN物联网络管理平台:https://linkwan.console.aliyun.com/service-open
相关文章
|
8月前
完美解决 fatal: unable to access ‘https://github.com/Homebrew/brew/‘
完美解决 fatal: unable to access ‘https://github.com/Homebrew/brew/‘
314 0
|
2月前
|
Linux 开发工具 git
【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github
【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github
|
4月前
【Error】fatal: unable to access ‘https://github.com/PanJiaChen/vue-element-admin/‘: OpenSSL SSL_read:
【Error】fatal: unable to access ‘https://github.com/PanJiaChen/vue-element-admin/‘: OpenSSL SSL_read:
|
开发工具 git
fatal: unable to access ‘https://github.com/.../.git‘: Could not resolve host: github.com解决方法【亲测有效】
1.问题原因 今天在使用Github的时候突然出现了这样的报错,云里雾里,看了网上的解决办法,说是代理服务器的问题,尝试了无数遍无果 然后Ping了一下github网站,发现Ping不通:
1302 0
|
11月前
|
开发工具 git
fatal: unable to access ‘https://github xxxxxxxxx的解决方法
fatal: unable to access ‘https://github xxxxxxxxx的解决方法
470 0
|
网络安全
unable to access ‘https://github.com/adobe-webplatform/eve.git/‘: Failed to connect to github.com
unable to access ‘https://github.com/adobe-webplatform/eve.git/‘: Failed to connect to github.com
|
开发工具 git
用Git工具下载其他人的项目出现的问题---fatal: unable to access ‘https://github.com/TheAlogorithms/Java.git/‘.........
在开启SS的前提下,手动配置git的代理。git客户端输入如下两个命令就可以了。
108 0
用Git工具下载其他人的项目出现的问题---fatal: unable to access ‘https://github.com/TheAlogorithms/Java.git/‘.........
fatal: unable to access 'https://github.com/XXXX.git/': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
fatal: unable to access 'https://github.com/XXXX.git/': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
251 0

相关产品

  • 物联网平台