Skip to content

Instantly share code, notes, and snippets.

@athoune
Created January 16, 2014 18:16
Show Gist options
  • Save athoune/8460273 to your computer and use it in GitHub Desktop.
Save athoune/8460273 to your computer and use it in GitHub Desktop.
Compiling Influxdb on a Mac
$ go version
go version go1.2 darwin/amd64
$ go env
GOARCH="amd64"
GOBIN="/usr/local/bin"
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.2"
GOTOOLDIR="/usr/local/Cellar/go/1.2/pkg/tool/darwin_amd64"
TERM="dumb"
CC="clang"
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fno-common"
CXX="clang++"
CGO_ENABLED="1"
$ make clean
[...]
$ ./configure --with-bison=/usr/local/opt/bison/bin/bison --with-flex=/usr/local/opt/flex/bin/flex
[...]
$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src/parser
/usr/local/opt/bison/bin/bison -t -d query.yacc -o y.tab.c --defines=y.tab.h
query.yacc:111.38-49: warning: type <expression> is used, but is not associated to any symbol [-Wother]
%destructor { free_expression($$); } <expression>
^^^^^^^^^^^^
query.yacc: warning: 7 shift/reduce conflicts [-Wconflicts-sr]
query.yacc: warning: 20 reduce/reduce conflicts [-Wconflicts-rr]
/usr/local/opt/flex/bin/flex -o lex.yy.c -i query.lex
/usr/local/bin/go get -d github.com/jmhodges/levigo
package github.com/jmhodges/levigo
imports runtime: unrecognized import path "runtime"
package github.com/jmhodges/levigo
imports runtime/cgo: unrecognized import path "runtime/cgo"
package github.com/jmhodges/levigo
imports syscall: unrecognized import path "syscall"
package github.com/jmhodges/levigo
imports unsafe: unrecognized import path "unsafe"
make: *** [src/github.com/jmhodges/levigo] Error 1
@pauldix
Copy link

pauldix commented Jan 16, 2014

are you trying to build this from source outside of Homebrew? If so, can you set your GOPATH to the dir that the influxdb source is in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment