简体   繁体   English

安装Go依赖项失败

[英]Failure installing Go dependency

I have installed Go on my server using the golang repo for CentOS 6.4. 我已经使用CentOS 6.4的golang repo在我的服务器上安装了Go。 The paths are set correctly and I can run go version. 路径设置正确,我可以运行版本。 When I try to download the package below I receive this error. 当我尝试下载下面的包时,我收到此错误。 Any help is appreciated 任何帮助表示赞赏

go get github.com/fiorix/freegeoip
# github.com/fiorix/freegeoip
cannot create <nil>/go.o: No such file or directory

googling that error I came across a thread that suggests that this is a bug with detecting a missing TMPDIR environment variable, for compiling the source during go get . 谷歌搜索该错误我遇到了一个线程,暗示这是一个检测缺少TMPDIR环境变量的错误,用于在go get期间编译源代码。

run export TMPDIR=/tmp and it should work. 运行export TMPDIR=/tmp它应该工作。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM