Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while building from Source. #9

Open
blumonkey opened this issue May 9, 2016 · 1 comment
Open

Error while building from Source. #9

blumonkey opened this issue May 9, 2016 · 1 comment

Comments

@blumonkey
Copy link

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
Copy link

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 [email protected]: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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants