最近想整个websocket的玩玩。获取websocket的时候出现下列提示:
$ go get code.google.com/p/go.net/websocket
go: missing Mercurial command. See http://golang.org/s/gogetcmd
package code.google.com/p/go.net/websocket: exec: "hg": executable file not found in %PATH%
很明显,是在windows的cmd中,找不到hg。
1.到官网:
http://mercurial.selenic.com/wiki/WindowsInstall
看到提示,去:
http://mercurial.selenic.com/wiki/Download
下载对应的windows的二进制安装文件:
http://mercurial.selenic.com/release/windows/Mercurial-2.9-x64.exe
将下载后的可执行文件安装就可以了。
参考:http://www.crifan.com/windows_install_mercurial_hg/