【物联网】OpenWrt编译出现Unable to find remote helper for 'https'问题
发布日期:2021-06-29 20:56:40
浏览次数:3
分类:技术文章
本文共 4490 字,大约阅读时间需要 14 分钟。
搞了一天了,编译的时候,总是出现 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-coredeng@cecport:/usr/local/libexec/git-core$ lsgit git-count-objects git-gui git-merge-subtree git-remote git-sh-setupgit-add git-credential git-gui--askpass git-mergetool git-remote-ext git-stagegit-add--interactive git-credential-cache git-hash-object git-mergetool--lib git-remote-fd git-stashgit-am git-credential-cache--daemon git-help git-merge-tree git-remote-ftp git-statusgit-annotate git-credential-store git-http-backend git-mktag git-remote-ftps git-stripspacegit-apply git-cvsexportcommit git-http-fetch git-mktree git-remote-http git-submodulegit-archimport git-cvsimport git-http-push git-mv git-remote-https git-submodule--helpergit-archive git-cvsserver git-imap-send git-name-rev git-remote-testpy git-svngit-bisect git-daemon git-index-pack git-notes git-remote-testsvn git-symbolic-refgit-bisect--helper git-describe git-init git-p4 git-repack git-taggit-blame git-diff git-init-db git-pack-objects git-replace git-tar-treegit-branch git-diff-files git-instaweb git-pack-redundant git-repo-config git-unpack-filegit-bundle git-diff-index git-interpret-trailers git-pack-refs git-request-pull git-unpack-objectsgit-cat-file git-difftool git-log git-parse-remote git-rerere git-update-indexgit-check-attr git-difftool--helper git-lost-found git-patch-id git-reset git-update-refgit-check-ignore git-diff-tree git-ls-files git-peek-remote git-revert git-update-server-infogit-check-mailmap git-fast-export git-ls-remote git-prune git-rev-list git-upload-archivegit-checkout git-fast-import git-ls-tree git-prune-packed git-rev-parse git-upload-packgit-checkout-index git-fetch git-mailinfo git-pull git-rm git-vargit-check-ref-format git-fetch-pack git-mailsplit git-push git-send-email git-verify-commitgit-cherry git-filter-branch git-merge git-quiltimport git-send-pack git-verify-packgit-cherry-pick git-fmt-merge-msg git-merge-base git-read-tree git-shell git-verify-taggit-citool git-for-each-ref git-merge-file git-rebase git-sh-i18n git-web--browsegit-clean git-format-patch git-merge-index git-rebase--am git-sh-i18n--envsubst git-whatchangedgit-clone git-fsck git-merge-octopus git-rebase--interactive git-shortlog git-worktreegit-column git-fsck-objects git-merge-one-file git-rebase--merge git-show git-write-treegit-commit git-gc git-merge-ours git-receive-pack git-show-branch mergetoolsgit-commit-tree git-get-tar-commit-id git-merge-recursive git-reflog git-show-indexgit-config git-grep git-merge-resolve git-relink git-show-refdeng@cecport:/usr/local/libexec/git-core$
这导致里面的 git-remote-https, git-remote-http 这些得不到执行。所以 git 所表现出来的功能不全。
解决办法是:将 /usr/local/libexec/git-core 纳入 PATH,至少在使用 git 之前,设置一下PATH。
:/usr/local/libexec/git-core$ vim ~/.bashrc
最后一行添加如下:
export PATH=/usr/local/libexec/git-core:$PATH
重启或者重新登录即可是环境变量生效
转载地址:https://dengjin.blog.csdn.net/article/details/50629318 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
很好
[***.229.124.182]2024年04月28日 18时09分46秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
TypeScript 安装
2019-04-30
TypeScript 基础类型
2019-04-30
typescript 用name作为变量名报错的原因
2019-04-30
TypeScript 变量声明
2019-04-30
typeScript 变量作用域
2019-04-30
TypeScript 运算符
2019-04-30
TypeScript 条件语句
2019-04-30
微信小程序 响应的数据绑定
2019-04-30
微信小程序框架
2019-04-30
微信小程序 场景值
2019-04-30
微信小程序 APP() 的那些事
2019-04-30
python 第一个程序 hello python
2019-04-30
python 注释
2019-04-30
python 变量类型
2019-04-30
Python int() 函数
2019-04-30
scrapy 框架安装
2019-04-30
scrapy 创建项目和新建爬虫
2019-04-30
scrapy 爬取起点中文网的作品分类
2019-04-30
浏览器与服务器建立TCP 连接后是否会在一个 HTTP 请求完成后断开?
2019-04-30
scrapy 爬取起点中文网首页的本周强推作品的详情介绍
2019-04-30