Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chobie/cb22c504223c3e929a00 to your computer and use it in GitHub Desktop.
Save chobie/cb22c504223c3e929a00 to your computer and use it in GitHub Desktop.
Make influxdb package

Building and installing InfluxDB on Debian Squeeze

This page is a work in progress. Instructions are for building the InfluxDB and their package for Debian 6 64bit.)

Packages installation

sudo apt-get install mercurial bzr protobuf-compiler flex bison valgrind g++ make curl rpm build-essential git

Go Installation

curl -O https://storage.googleapis.com/golang/go1.2.2.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.2.2.linux-amd64.tar.gz
echo -ne 'export GOROOT=/usr/local/go\nexport PATH=$PATH:/$GOROOT/bin\n' >> ~/.bash_profile
source ~/.bash_profile

Getting InfluxDB Source Code

git clone https://github.com/influxdb/influxdb.git

Building InfluxDB

cd influxdb
./configure
make

RVM Installation (You need RVM to make packages)

curl -sSL https://get.rvm.io | bash -s stable
echo '[ -s ${HOME}/.rvm/scripts/rvm ] && source ${HOME}/.rvm/scripts/rvm
' >> ~/.bash_profile
source ~/.bash_profile
rvm install 1.9.3

rvm 1.9.3@influxdb do bundle install
make package

Running Tests

running whole test cases (takes several minutes)

make test

running integration/data_test

make integration_test only=DataTest verbose=on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment