Golang  grpc protoc

使用make生成PB文件时

make gen service=demo-service底层使用的是:buf generate demo-service -v

出现以下错误

Failure: failed to generate plugins concurrently: failed to create handler: could not find protoc plugin for name gomake: *** [gen] Error 1

解决方案

export PATH=$PATH:$HOME/go/bin
export PATH=$PATH:/usr/local/go/bin

参考如下:

My problem was fixed after adding both GOPATH and GOROOT in PATH as @neild said.
use :


export PATH=$PATH:$HOME/go/bin, in order to add the GOPATH and
export PATH=$PATH:/usr/local/go/bin, in order to add GOROOT

原文:golang/protobuf/issues/795

buf generate Failure: failed could not find protoc plugin for name go 解决方法相关推荐

  1. .NET Core SDK在Windows系统安装后出现Failed to load the hostfxr.dll等问题的解决方法

    .NET Core SDK在Windows系统安装后出现Failed to load the hostfxr.dll等问题的解决方法 参考文章: (1).NET Core SDK在Windows系统安 ...

  2. iOS开发:GitHub上传代码错误提示fatal: Authentication failed for 'https://gitee.com/XXX/XXX.git/‘的解决方法

    上传代码到Git上面,有时候会遇到各种情况,有些时候是因为合并代码冲突,有些时候是因为修改了Git的登录密码需要重新认证.那么这里就来讲解错误提示fatal: Authentication faile ...

  3. SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.的解决方法

    文章目录 前言 解决办法 前言 最近在研究如何用java更方便更简洁的去进行HTTP请求,过去我一直用的是jdk自带的HttpURLConnection ,国庆正好有时间研究研究其他大佬推荐的Http ...

  4. 对于在git上面拉代码报“error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054“解决方法

    对于在git上面拉代码报"error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054"解 ...

  5. Check failed: error == cudaSuccess (74 vs. 0) misaligned address的解决方法

    今天训练网络的时候加入了Deconvolution Layer,结果一运行报Check failed: error == cudaSuccess (74 vs. 0) misaligned addre ...

  6. Git使用出现Automatic merge failed; fix conflicts and then commit the result.解决方法

    Git使用出现Automatic merge failed; fix conflicts and then commit the result.解决方法 参考文章: (1)Git使用出现Automat ...

  7. loadlibrary failed with error 126:找不到指定模块 解决方法

    1. 情景 本人电脑双显(集成显卡+独显3050) 打开CoppeliSim 报loadlibrary failed with error 126 2.解决方法 设备管理器-> 显示适配器-&g ...

  8. 【抓包】- Fiddle软件异常错误,Fiddler Failed to register Fiddler as the system proxy,解决方法

    一.问题背景 打开软件的时候,弹出异常 Fiddler Failed to register Fiddler as the system proxy 二.无效的解决方法 网上普遍的解决方法是在注册表编 ...

  9. android 项目Failed to transform file ‘xxxxx.jar‘ to match attributes 解决方法

    最近接入第三方依赖时报错 Execution failed for task ':vivoads:compileDebugKotlin'. > Could not resolve all fil ...

最新文章

  1. python--pandas 分位数
  2. 阿里算法工程师公开机器学习路线,你的路走对了吗?
  3. C语言知识体系思维导图
  4. 第一个,net core项目,.net core入门介绍来了
  5. kuangbin专题十六 KMP扩展KMP HDU2594 Simpsons’ Hidden Talents
  6. (一)prometheus与grafana介绍与安装
  7. C语言二维数组找出交集,【leetcode C语言实现】剑指 Offer 04. 二维数组中的查找...
  8. git上传分支的原理_GIT分支,创建分支与合并分支的工作原理与教程
  9. win32diskimager报错:An error occured when attempting to XXX, Error 5: Access is Denied
  10. [Unity] Canvas 设置为 Screen Space - Camera 时,UI 被场景物体遮挡的解决办法:设置 Canvas 的 Plane Distance 为一个较小的数
  11. 字典推导式_Python基础-推导式
  12. linux info文件夹,详解Linux系统中查询文档的man和info命令
  13. Leetcode 257. 二叉树的所有路径
  14. mac下修改MySQL密码
  15. Java修改带回显吗_修改的是根据自定义标签进行处理回显
  16. AR5B22网卡折腾记录
  17. 廊坊金彩教育:如何提高店铺评分
  18. display的contents属性
  19. 酷桌面:IPAD上体验office的炫“酷”移动办公应用
  20. 对透明表、簇表的理解

热门文章

  1. 安卓第三阶段实训项目:基于网络乐库音乐播放器V1.0
  2. Python学习笔记:利用sorted()函数对序列排序
  3. JavaScript学习笔记:AJAX基础
  4. 【BZOJ2744】【codevs2366】朋友圈,二分图最大匹配
  5. 2017.3.25 最长递增子序列 失败总结
  6. noip2016参赛感想
  7. c语言指针地址交换程序,C语言-基础教程-指针的地址分配
  8. bfv同态加密_lattigo: 基于Lattice代数结构的Go同态加密库
  9. 浅谈K短路算法(KSP)之二(YEN .J算法求解)
  10. 检查是否禁止asp.net服务扩展_在 Kubernetes 环境下部署 OpenWhisk 服务