/ linux

Build InfluxDB for Raspberry PI

Preparations for building with Go

$ sudo apt-get install -y ruby ruby-dev gcc rpm
$ sudo gem install fpm

Install Go itself

Some tutorials deal with first installing 1.4.3, then one of the 1.5 branch.
While testing these steps all builds were completed with Go 1.4.3 itself... So go for it.

$ wget https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer
$ chmod +x gvm-installer 
$ ./gvm-installer
$ source /home/pi/.gvm/scripts/gvm
$ gvm install go1.4.3
$ gvm use go1.4.3 --default

Download and build influxdb

$ mkdir $HOME/mygo
$ export GOPATH=$HOME/mygo
$ go get github.com/influxdata/influxdb
$ cd $GOPATH/src/github.com/influxdata/influxdb
$ ./build.py --package --version=0.11.1 --arch=armhf

Install packaged archive

$ sudo dpkg -i build/influxdb_0.11.1-1_armhf.deb

Based in parts on tutorials from various guys, mainly Nicolas Steinmetz and his issue on InfluxDB github.