安装Go依赖项失败

kil*_*omo 4 go

我已经使用CentOS 6.4的golang repo在我的服务器上安装了Go.路径设置正确,我可以运行版本.当我尝试下载下面的包时,我收到此错误.任何帮助表示赞赏

go get github.com/fiorix/freegeoip
# github.com/fiorix/freegeoip
cannot create <nil>/go.o: No such file or directory
Run Code Online (Sandbox Code Playgroud)

Not*_*fer 6

谷歌搜索该错误我遇到一个线程,暗示这是一个检测缺少TMPDIR环境变量的错误,用于编译源期间go get.

export TMPDIR=/tmp,它应该工作.

请看:https: //groups.google.com/forum/#!topic/golang-dev/LnxmgwB0r3Q