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

Building: Debian 8

Craig Minihan edited this page Jan 29, 2017 · 19 revisions

Building AvanceDB on Debian 8 is pretty easy. You'll need to execute the following steps as root or by prefixing the command lines with sudo.

Make sure the most up to date packages are available:

apt-get update

Install basic tools:

apt-get install curl wget unzip bzip2 pkgconf

Install development tools and libraries:

apt-get install g++ make autoconf autoconf2.13 automake libtool git libboost-all-dev zlib1g-dev

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 -j2 CONF=Release

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 your system, you should see something like:

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

Developing with AvanceDB

If you want to develop against AvanceDB you will need a debug build, first we need to install some more packages

apt-get install openjdk-7-jre doxygen
apt-get install ruby ruby-dev lcov
apt-get install python-dev python-pip
apt-get install nodejs nodejs-legacy npm

Build in debug mode:

make -j 2

If you have more than two CPU cores on your system then you can increase the value of the -j parameter to decrease build times.

Now you can run the tests:

make test

You will need CouchDB for the tests to complete successfully. Unfortunately there are no pre-built packages for Debian 8, you can try out this guide which will walk through an install of CouchDB on your system.