Error while building from Source.
Opened this issue · 1 comments
blumonkey commented
Hi Everyone.
I tried to build hive
from source but it generates the following error:
$ make
go get .
# github.com/araddon/gou
../../araddon/gou/testutil.go:26:6: error: expected operand
for range timer.C {
^
../../araddon/gou/testutil.go:26:6: error: expected ‘{’
../../araddon/gou/testutil.go:26:6: error: expected ‘;’ or ‘}’ or newline
../../araddon/gou/testutil.go:29:9: error: break statement not within for or switch or select
break
^
../../araddon/gou/testutil.go:31:3: error: expected declaration
if tryct >= timeoutSecs*10 {
^
../../araddon/gou/testutil.go:33:4: error: expected declaration
break
^
../../araddon/gou/testutil.go:34:3: error: expected declaration
}
^
../../araddon/gou/testutil.go:35:3: error: expected declaration
tryct++
^
../../araddon/gou/testutil.go:36:2: error: expected declaration
}
^
../../araddon/gou/testutil.go:37:1: error: expected declaration
}
^
make: *** [build/hive-server] Error 2
Please help me resolve this issue. Thanks in advance!
iaincollins commented
For reference am able to build from source without issue on Mac OS X with latest release of go (as of date of posting).
$ mkdir -p $GOPATH/src/github.com/nytlabs
$ cd $GOPATH/src/github.com/nytlabs
$ git clone git@github.com:nytlabs/hive.git
Cloning into 'hive'...
remote: Counting objects: 28, done.
remote: Total 28 (delta 0), reused 0 (delta 0), pack-reused 28
Receiving objects: 100% (28/28), 31.59 KiB | 0 bytes/s, done.
Resolving deltas: 100% (7/7), done.
Checking connectivity... done.
$ cd hive
$ make
go get .
go build -o build/hive-server .
$ go version
go version go1.8.3 darwin/amd64
$ uname -a
Darwin imacglitchdigital.local 15.6.0 Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64
$ ./build/hive-server
2017/07/31 16:17:46 running hive-server on port 8080 storing data in elasticsearch under index hive