$GOPATH not set 问题解决方案
2014-03-19 21:08
429 查看
环境配置:
RyanMacbookPro:work$ env | grep GO
GOBIN=/usr/local/go/bin
GOARCH=amd64
GOROOT=/usr/local/go
GOOS=darwin
GOPATH=/Users/ryan/go
执行安装
sudo go get github.com/nsf/gocode
提示:
cannot download, $GOPATH not set. For more details see: go help gopath
解决方案:
sudo env GOPATH=/Users/ryan/go go get github.com/nsf/gocode
RyanMacbookPro:work$ env | grep GO
GOBIN=/usr/local/go/bin
GOARCH=amd64
GOROOT=/usr/local/go
GOOS=darwin
GOPATH=/Users/ryan/go
执行安装
sudo go get github.com/nsf/gocode
提示:
cannot download, $GOPATH not set. For more details see: go help gopath
解决方案:
sudo env GOPATH=/Users/ryan/go go get github.com/nsf/gocode
相关文章推荐
- CocoaPods did not set the base configuration of your project 问题解决方案
- CocoaPods did not set the base configuration of your project 问题解决方案
- Error:could not open jvm.cfg 问题解决方案
- 解决ant编译中出现“includeantruntime was not set”警告的问题
- 解决maven打包编译出现File encoding has not been set问题
- java虚拟机内存不足,“Could not create the Java Virtual Machine”问题解决方案
- Tips002 - Eclipse "Could not create the view" 问题解决方案
- 关于powerdesigner conntion not test 问题解决方案
- Mac $GOPATH not set Go语言环境变量的问题
- java虚拟机内存不足,“Could not create the Java Virtual Machine”问题解决方案
- 执行sudo go get出现$GOPATH not set的问题
- “Location of the Android SDK has not been set up in the preferences”问题的解决
- Xcode '*/*.h' file not found 此类问题解决方案
- $gopath not set的解决办法
- apktool 反编译 Input file was not found or was not readable.问题解决方案
- 验证码计时 -- UIButton setTitle 闪烁问题解决方案
- 问题win7 gopath not set
- date_default_timezone_set()问题解决方案(PHP5.3以上的)
- 编译hadoop-0.20.2源码时执行ant eclipse-files出现.eclipse.templates does not exist问题解决方案