美文网首页
golang安装第三包报错 exec: "hg": execut

golang安装第三包报错 exec: "hg": execut

作者: 爱吃橙子的高先森 | 来源:发表于2017-09-14 15:53 被阅读0次

【解决过程】

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

结果就是:
没有消息,就是最好的消息
即:安装成功了,无任何错误信息。

相关文章

网友评论

      本文标题:golang安装第三包报错 exec: "hg": execut

      本文链接:https://www.haomeiwen.com/subject/wsudsxtx.html