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

How do you use this thing? #24

Open
fake-name opened this issue Jan 4, 2018 · 2 comments
Open

How do you use this thing? #24

fake-name opened this issue Jan 4, 2018 · 2 comments

Comments

@fake-name
Copy link

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?

@fake-name
Copy link
Author

fake-name commented Jan 4, 2018

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 Migrator seems to no longer work. #25

Maybe at least put the invocation in the readme?

@logicalup
Copy link

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?

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