Can't get Golang to work in Ubuntu
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Ok, So I've downloaded Go 1.1 and put it into $HOME/Documents/go. Then, I've modified my .bashrc to be: export GOPATH=$HOME/Documents/go export GOROOT=$GOPATH export GOARCH=amd64 export GOOS=linux export GOBIN=$GOPATH/bin export PATH=$PATH:$GOBIN Than I've sourced the .bashrc , and tried: jan@janpc:~$ go version go version go1.1 linux/amd64 But I can't get it to compile or install any dependencies. Eg. I try to run my little test program: jan@janpc:~/Documents/go/src/github.com/jan/scrypt$ go run scrypt.go warning: GOPATH set to GOROOT (