This file contains the instructions to install CDBoost in Ubuntu. 
(The instructions are tested in Ubuntu 16.04)

/**************************/
/****FILES ORGANIZATION****/
/**************************/

README.txt

cdboost [This folder contains CDBoost library]


/**********************/
/**** INSTALLATION ****/
/**********************/

CDBoost has the following dependencies:

1 - Boost library
	STEP 1 explains how to install Boost library

2 - A compiler (gcc-4.9)
	STEP 2 explains how to install gcc - 4.9

/*****************************************************/
/****STEP 1 - Install boost library (Dependency 1)****/
/*****************************************************/

Option 1 is recommended. Only use Option 2 if Option 1 does not work.

---------------------------
Option 1 - Autoinstallation
---------------------------

1. Open the terminal. Press on your keyboard Ctrl+Alt+t

2. Type in the terminal:
	sudo apt-get install libboost-all-dev
*Ubuntu will ask for your Ubuntu user password to continue the installation. If your Ubuntu account is not administrator account it will not allow the installation. 
   2.1. When it appears "Do you want to continue? [Y/n]", type in the terminal
	y

---------------------------------------------------------
Option 2 - Install the boost library in a specific folder 
---------------------------------------------------------

NOTE: If at any step it asks " "Do you want to continue? [Y/n]", type in the terminal "y"

1 - Download "boost_1_61_0.tar.bz2" from http://www.boost.org/users/history/version_1_61_0.html

2 - Open the terminal. Press on your keyboard Ctrl+Alt+t 

3 - Set the prompt in the folder where you want to install Boost typing the path in the terminal. It is recommended to set it in the home directory
	Example: cd home

4 - Type in the terminal "tar --bzip2 -xf /path/to/boost_1_61_0.tar.bz2"
	Example: tar --bzip2 -xf Downloads/boost_1_61_0.tar.bz2

3 - Set the prompt in the root of the unpacked tree (boost_1_61_0) typing in the terminal the path.
	Example: cd  boost_1_61_0

4 - Type in the terminal
	sudo apt-get update
*Ubuntu will ask for your Ubuntu user password to continue the installation. If your Ubuntu account is not administrator it will not allow the installation.   

5 - Type in the terminal
	sudo apt-get install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev libboost-all-dev

6 - Type in the terminal
	sudo ./bootstrap.sh 

7 - Type in the terminal
	sudo ./b2

8 - Type in the terminal
	sudo ./b2 install 

NOTE: If you follow option 2, you will need to add the path to the boost library folder in the makefile to be able to compile. (It is explained in the CDBoost_templates folder)

/***********************************************/
/****STEP 2 - Install gcc-4.9 (Dependency 2)****/
/***********************************************/

NOTE: If at any step it asks " "Do you want to continue? [Y/n]", type in the terminal "y"

1 - Type in the terminal
	sudo add-apt-repository ppa:ubuntu-toolchain-r/test
*Ubuntu may ask for your Ubuntu user password to continue the installation. If your Ubuntu account is not administrator it will not allow the installation.  

2 - Type in the terminal 
	sudo apt-get update

3 - Type in the terminal 
	sudo apt-get install gcc-4.9 g++-4.9
  
/********************************/
/****STEP 3 - Install CDBoost****/
/********************************/

1 - Copy the "cdboost" folder provided in the same folder as these instructions into a directory on your computer. Home directory is recommended

* Remember that you need to add the relative path to "/cdboost/include" in the makefile to compile. It is explained in the CDBoost_templates folder
