Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Building: Raspbian 2015 05 05

Craig Minihan edited this page Nov 23, 2016 · 4 revisions

Building AvanceDB on Raspbian 2015-05-05 is fairly involved. If you are confident that you can recover from any screw-ups you make following these instructions then read on, otherwise this may not be for you.

First of all let's make sure we have the latest and greatest baseline:

sudo apt-get update
sudo apt-get upgrade

Now we need to fool aptitude into thinking your Pi is running Debian Jessie:

sudo nano /etc/apt/sources.list

Replace the text wheezy with the text jessie. Once you've completed all these steps you'll need to restore the original setting.

Now we need to pull the latest package lists for jessie onto your Pi:

sudo apt-get update

Next we have to install GCC 4.9 since the default wheezy GCC is way too old.

sudo apt-get install gcc-4.9 g++-4.9

Almost there, we just need some additional dependencies:

sudo apt-get install libboost-all-dev
sudo apt-get install m4

Now we can pull the code, make a directory under your home directory, change to it and run the following:

git clone --recursive https://github.com/RipcordSoftware/AvanceDB.git
cd AvanceDB
make CC=gcc-4.9 CXX=g++-4.9 CONF=Release -j2

Assuming all went well you should have a built AvanceDB release binary under src/avancedb/dist/Release/GNU-Linux-x86, change to that directory and run it:

cd src/avancedb/dist/Release/GNU-Linux-x86
./avancedb

You can validate that AvanceDB is running by pointing your browser to port 5994 on the Pi, you should see something like:

{"couchdb":"Welcome","avancedb":"Welcome","uuid":"a2db86472466bcd02e84ac05a6c86185","version":"1.6.1","vendor":{"version":"0.0.1","name":"Ripcord Software"}}