kilomo
kilomo

Reputation: 259

Failure installing Go dependency

I have installed Go on my server using the golang repo for CentOS 6.4. 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

Upvotes: 4

Views: 1072

Answers (1)

Not_a_Golfer
Not_a_Golfer

Reputation: 49265

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.

run export TMPDIR=/tmp and it should work.

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

Upvotes: 6

Related Questions