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

Building: Ubuntu 15

Craig Minihan edited this page Jan 4, 2017 · 14 revisions

Building AvanceDB on Ubuntu 15 is pretty easy. You'll need to have at least sudo rights.

Install basic tools:

sudo apt-get install curl wget unzip bzip2 pkgconf

Install development tools and libraries:

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

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

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

Start CouchDB:

systemctl enable couchdb
systemctl start couchdb

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