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

Building: CentOS 6

Craig Minihan edited this page Sep 20, 2015 · 16 revisions

Building AvanceDB on CentOS 6 isn't easy, this is an old operating system. You'll need to execute the following yum steps as root so be careful to follow closely.

Install basic tools:

yum install curl wget unzip pkgconfig

Install development tools and libraries:

yum install make autoconf git zlib-devel

# add SciLinux for GCC 4.9
pushd /etc/yum.repos.d
wget http://linuxsoft.cern.ch/cern/scl/slc6-scl.repo
yum -y --nogpgcheck install devtoolset-3-gcc devtoolset-3-gcc-c++
popd

# we need a new(ish) Boost
sudo wget http://repo.enetres.net/enetres.repo -O /etc/yum.repos.d/enetres.repo
sudo yum install boost-devel

Update the shell environment so we use GCC 4.9:

source /opt/rh/devtoolset-3/enable

You may want to put this in your .profile or .bashrc file to set your environment up correctly each time you start a session.

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

Developing AvanceDB on CentOS 6 will be hard work. It should be possible, but you are on your own here. As a quick guide you will need at least:

  • Java
  • Ruby
  • Python
  • NodeJS
  • CouchDB