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

Building: Fedora 22

Craig Minihan edited this page Nov 19, 2015 · 13 revisions

Building AvanceDB on Fedora 22 is pretty easy. However you'll need to execute the following dnf steps as root so be careful to follow closely.

Install basic tools:

dnf install curl wget unzip pkgconfig

Install development tools and libraries:

dnf install gcc-c++ make autoconf git boost-devel zlib-devel 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 -j 2 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 as root:

dnf install java-1.8.0-openjdk doxygen
dnf install ruby lcov
dnf install python-devel python-pip
dnf install nodejs npm
dnf install couchdb

Start CouchDB:

systemctl enable couchdb
systemctl start couchdb

You can now build AvanceDB 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.

Unfortunately on Fedora selinux will prevent the CouchDB beam process from opening a port to AvanceDB to replicate. So before running tests you will have to switch the selinux mode to disabled or permissive. For more information see this page.

Now you can run the tests:

make test