-
Notifications
You must be signed in to change notification settings - Fork 12
Building: CentOS 7
Building AvanceDB on CentOS 7 is pretty easy. However 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 gcc-c++ make autoconf automake libtool git boost-devel zlib-devel
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"}}
If you want to develop against AvanceDB you will need a debug build, first we need to install some more packages as root
:
yum install java-1.8.0-openjdk doxygen
yum install ruby ruby-devel lcov
yum install python-devel python-pip
yum install nodejs npm
We need to get CouchDB from EPEL:
wget https://dl.fedoraproject.org/pub/epel/7/ppc64/e/epel-release-7-5.noarch.rpm
yum localinstall epel-release-7-5.noarch.rpm
yum 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