Build instructions for InfluxDB - Missing?



I want build (if necessary) and run InfluxDB on brand new Ubuntu 18.04 on an IBM Power based server.
I cant seem to find instruction on how to do that or they are very well hidden.
There are a few web pages (like with hints from 2015 covering the an old Go version and an old InfluxDB version and others that assume vast experience of Go and Git hub use so its a list of hints - not a complete example to follow.

I eventually go to Go 1.11 (needed for InfluxDB 1.72)and built InfluxDB and ended up with 31 missing pre-req error messages like
flux/cmd/changelog/cmd/generate.go:13:2: cannot find package “github dot com/Masterminds/semver” in any of:
/usr/lib/go-1.10/src/github dot com/Masterminds/semver (from $GOROOT)
/home/nag/go/src/github dot com/Masterminds/semver (from $GOPATH)

. . .
Any help in this area would be very welcome. I have a stats collector njmon for AIX (on Power) and would like to run InfluxDB on the same server via Linux on Power.
Cheers, Nigel


PART 1 due to crazy one link per reply

OK lots of progress made.
Details are here but you have to go other places to find things and come back

Here are my notes:
Virgin fresh install of Ubuntu 18.04 Linux on Power

sudo apt update
sudo apt upgrade

Not sure if these required but they were previously installed


Install gvm - a Go version fetcher

sudo apt install bison
bash < <(curl -s -S -L

Check gvm works and use it to download Go version 1.11
gvm install go1.11
gvm use go1.11 --default


Use go to get dep - some dependancy check
go get
sudo apt install git-all
sudo apt install mercurial

Setup GOPATH to point your your local Go enviroment
echo $HOME
mkdir $HOME/gocodez
export GOPATH=$HOME/gocodez


Get InfluxDB
go get


influxdb has loads of other Go tools it depends on so we need to get them
cd $GOPATH/src/
dep ensure

Nowstart the build
go clean ./…
go install ./…



The install put the binaries in a local bin
ls $GOPATH/bin

nag@silver1:~/gocodez/bin$ ls -l
total 173352
-rw-rw-r-- 1 nag nag 3311 Jan 8 17:34 config.txt
-rwxrwxr-x 2 nag nag 12887864 Jan 8 16:15 dep
-rwxrwxr-x 1 nag nag 20504976 Jan 8 16:26 influx
-rwxrwxr-x 1 nag nag 34648688 Jan 8 16:26 influxd
-rwxrwxr-x 1 nag nag 17239704 Jan 8 16:26 influx_inspect
-rwxrwxr-x 1 nag nag 10044480 Jan 8 16:26 influx_stress
-rwxrwxr-x 1 nag nag 31152656 Jan 8 16:26 influx_tools
-rwxrwxr-x 1 nag nag 18639600 Jan 8 16:26 influx_tsm
-rwxrwxr-x 1 nag nag 22887984 Jan 8 16:26 store
-rwxrwxr-x 1 nag nag 6361504 Jan 8 16:26 stress_test_server
-rwxrwxr-x 1 nag nag 3474232 Jan 8 16:26 test_client

Attempt making a package - includes fixing a missing link to dep
python --help
ls /home/nag/gocodez/bin/dep
which dep
ln /home/nag/.gvm/pkgsets/go1.11/global/bin/dep /home/nag/gocodez/bin/dep
python --package

Now we have a missing package = ruby gem
to sort out - see website

cd $GOPATH/bin
sudo ./influxd

create database njmon;