分享
golang安装第三包报错 exec: "hg": executable file not found in %PATH%
爱吃橙子的高先森 · · 1478 次点击 · · 开始浏览这是一个创建于 的文章,其中的信息可能已经有所发展或是发生改变。
【解决过程】
1.很明显,是在windows的cmd中,找不到hg。
而对于hg,如果是cygwin等环境,那肯定没问题,但是此处是cmd,所以没法用hg。
2.参考:
``
[package code.google.com/p/go.example/hello: exec: "hg": executable file not found in %PATH%. How to get remote golang packages?]`
(http://stackoverflow.com/questions/16900486/package-code-google-com-p-go-example-hello-exec-hg-executable-file-not-foun)
也是让去安装hg。
3.所以就需要去另外在windows中安装hg:
[【记录】windows下安装Mercurial的hg](https://www.crifan.com/windows_install_mercurial_hg/)
4.安装完毕,就可以继续去试试了:
[?](https://www.crifan.com/go_get_install_error_exec_hg_executable_file_not_found_in_path/#)
go get code.google.com/p/log4go
结果就是:
没有消息,就是最好的消息
即:安装成功了,无任何错误信息。
有疑问加站长微信联系(非本文作者)
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
关注微信1478 次点击
下一篇:go语言环境搭建
添加一条新回复
(您需要 后才能回复 没有账号 ?)
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码` - 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传
收入到我管理的专栏 新建专栏
【解决过程】
1.很明显,是在windows的cmd中,找不到hg。
而对于hg,如果是cygwin等环境,那肯定没问题,但是此处是cmd,所以没法用hg。
2.参考:
``
[package code.google.com/p/go.example/hello: exec: "hg": executable file not found in %PATH%. How to get remote golang packages?]`
(http://stackoverflow.com/questions/16900486/package-code-google-com-p-go-example-hello-exec-hg-executable-file-not-foun)
也是让去安装hg。
3.所以就需要去另外在windows中安装hg:
[【记录】windows下安装Mercurial的hg](https://www.crifan.com/windows_install_mercurial_hg/)
4.安装完毕,就可以继续去试试了:
[?](https://www.crifan.com/go_get_install_error_exec_hg_executable_file_not_found_in_path/#)
go get code.google.com/p/log4go
结果就是:
没有消息,就是最好的消息
即:安装成功了,无任何错误信息。