码迷,mamicode.com
首页 > 其他好文 > 详细

exec: "go": executable file not found in $PATH异常的原因

时间:2019-03-30 21:29:30      阅读:322      评论:0      收藏:0      [点我收藏+]

标签:ror   erro   执行   运行环境   bsp   mamicode   ima   图片   异常   

尝试在机器上部署athens,运行时发生如下异常

error adding proxy routes ,exec: "go": executable file not found in $PATH。

一般来说go程序的运行环境是不需要安装go的。在交叉编译的加持下,分发部署更加方便。但是如果go程序中通过exec的方式执行了其他go命令,那么部署环境自然也需要安装go,且export到path中。athens有了这样的逻辑才导致上述异常。

技术图片

 

exec: "go": executable file not found in $PATH异常的原因

标签:ror   erro   执行   运行环境   bsp   mamicode   ima   图片   异常   

原文地址:https://www.cnblogs.com/luliAngel/p/10629017.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!