When installing the Go plugin, will automatically update a lot of dependent library files, are updated from GitHub, but because of GitHub files, there are many applications in the go official website files, resulting, because the network, can not be directly downloaded, resulting in installation failure, as follows:
- Installing Github.com/nsf/gocode succeeded
- Installing github.com/uudashr/gopkgs/cmd/gopkgs succeeded
- Installing github.com/ramya-rao-a/go-outline FAILED
- Installing github.com/acroca/go-symbols FAILED
- Installing Golang.org/x/tools/cmd/guru FAILED
- Installing Golang.org/x/tools/cmd/gorename FAILED
- Installing Github.com/fatih/gomodifytags succeeded
- Installing Github.com/haya14busa/goplay/cmd/goplay succeeded
- Installing Github.com/josharian/impl FAILED
- Installing Github.com/rogpeppe/godef succeeded
- Installing Sourcegraph.com/sqs/goreturns FAILED
- Installing Github.com/golang/lint/golint FAILED
- Installing github.com/cweill/gotests/... FAILED
- Installing GITHUB.COM/DEREKPARKER/DELVE/CMD/DLV succeeded
- 8 Tools failed to install.
These failed libraries, not downloaded down, but since the files on the go official online, led to failure. Here are the solutions,
1、在%GOPATH%\src\ 目录下,建立golang.org 文件夹,并再新建x文件夹。 目录为 "%GOPATH\src\golang.org\x\"
2、完成目录切换后,开始下载插件包:
git clone https://github.com/golang/tools.git tools
3, after the execution, there will be a more Tools folder.
Go Install Github.com/ramya-rao-a/go-outline
Go Install Github.com/acroca/go-symbols
Go Install Golang.org/x/tools/cmd/guru
Go Install Golang.org/x/tools/cmd/gorename
Go Install Github.com/josharian/impl
Go Install Github.com/rogpeppe/godef
Go Install Github.com/sqs/goreturns
Go Install Github.com/golang/lint/golint
Go Install github.com/cweill/gotests/gotests
Go Install Github.com/ramya-rao-a/go-outline
Go Install Github.com/acroca/go-symbols
Go Install Golang.org/x/tools/cmd/guru
Go Install Golang.org/x/tools/cmd/gorename
Go Install Github.com/josharian/impl
Go Install Github.com/rogpeppe/godef
Go Install Github.com/sqs/goreturns
Go Install Github.com/golang/lint/golint
Go Install github.com/cweill/gotests/gotests
By this method, you can install successfully.
Reference blog:
http://www.pythonsite.com/?p=429
http://blog.csdn.net/langzi7758521/article/details/51313521