How do you use this thing?
fake-name opened this issue · comments
I'm trying to get InfluxDB set up on a ubuntu box that previously ran a Graphite/Carbon database.
I have not worked with go before.
InfluxDB is installed via the apt
repository described in the docs.
I have go installed from the ubuntu apt
repositories.
durr@graphical:~/whisper-migrator$ ./migration.go
bash: ./migration.go: Permission denied
durr@graphical:~/whisper-migrator$ chmod +x migration.go
durr@graphical:~/whisper-migrator$ ./migration.go
./migration.go: line 1: package: command not found
./migration.go: line 3: syntax error near unexpected token `newline'
./migration.go: line 3: `import ('
durr@graphical:~/whisper-migrator$ go run migration.go
migration.go:7:2: cannot find package "github.com/influxdata/influxdb/client/v2" in any of:
/usr/lib/go-1.6/src/github.com/influxdata/influxdb/client/v2 (from $GOROOT)
($GOPATH not set)
migration.go:8:2: cannot find package "github.com/influxdata/influxdb/tsdb/engine/tsm1" in any of:
/usr/lib/go-1.6/src/github.com/influxdata/influxdb/tsdb/engine/tsm1 (from $GOROOT)
($GOPATH not set)
migration.go:9:2: cannot find package "github.com/uttamgandhi24/whisper-go/whisper" in any of:
/usr/lib/go-1.6/src/github.com/uttamgandhi24/whisper-go/whisper (from $GOROOT)
($GOPATH not set)
How do you actually run this thing? Do I need to have built influxdb or something?
Ok, so the solution wound up being:
- Install
go
from apt. - Spend 45 minutes trying to figure out how to install go packages.
- Discover that Ubuntu 16.04's go is spectacularly out of date.
- Install go from a random ppa
go get -v ./...
- LONG wait
go run migration.go <nnnnn>
- File #25
Maybe at least put the invocation in the readme?
having same errors as original poster go get -v ./...
doesn't help anymore, last commit more than 3 years ago. Maybe someone can update this repo+readme?