-
Notifications
You must be signed in to change notification settings - Fork 12
Building: Ubuntu 14
Building AvanceDB on Ubuntu 14 is pretty easy. You'll need to execute the following steps as root or by prefixing the command lines with sudo
.
The C++ compiler that ships with Ubuntu 14 is too old to build AvanceDB, we'll need a newer version so we add another aptitude source:
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
Make sure the package database is current:
sudo apt-get update
Install basic tools:
sudo apt-get install curl wget unzip pkgconf
Install development tools and libraries:
sudo apt-get install g++-4.9 make autoconf 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 -j 2 CONF=Release CXX=g++-4.9
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
sudo apt-get install openjdk-7-jre doxygen
sudo apt-get install ruby ruby-dev lcov
sudo apt-get install python-dev python-pip
sudo apt-get install nodejs nodejs-legacy npm
sudo apt-get install 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