* Compile SOCI 

---------CMake-----------------------------------------------------
CMake 2.8+ - in order to use build configuration for CMake
tar xzvf cmake-2.8.11.tar.gz
cd cmake-2.8.11.tar.gz
./configure 
make
make install
---------Oracle-----------------------------------------------------
cd /user/service/lib/
mkdir oracle
cd /user/service/lib/oracle
unzip instantclient-basic-linux.x64-11.2.0.3.0.zip
unzip instantclient-sdk-linux.x64-11.2.0.3.0.zip
cd instantclient_11_2/
ln -s libocci.so.11.1 libocci.so
ln -s libclntsh.so.11.1 libclntsh.so
export ORACLE_HOME=/user/service/lib/oracle/instantclient_11_2
---------MySQL-----------------------------------------------------
tar xzvf mysql-connector-c-6.1.0-src.tar.gz 
cd mysql-connector-c-6.1.0-src
mkdir build
cd build/
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/user/service/lib/mysql ../
make
make install
export MYSQL_DIR=/user/service/lib/mysql
---------PostgreSQL-----------------------------------------------------
tar xzvf postgresql-9.1.3.tar.gz
cd postgresql-9.1.3.tar.gz
./configure --enable-thread-safety --prefix=/user/service/lib/pgsql
make 
make install
ln -s /user/service/lib/pgsql/bin/pg_config /usr/bin/pg_config
-----------SOCI---------------------------------------------------------
tar xzvf soci-3.2.1.tar.gz
cd soci-3.2.1
mkdir build
cd build
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX:=/user/service/lib -DWITH_BOOST:=OFF -DSOCI_ORACLE:=ON -DWITH_ORACLE:=ON -DWITH_MYSQL:=ON -DSOCI_MYSQL:=ON  -DWITH_POSTGRESQL:=ON -DSOCI_POSTGRESQL:=ON -DWITH_ODBC:=OFF -DWITH_FIREBIRD:=OFF -DWITH_DB2:=OFF ../.
make
make install

* Compile SOCI (Only Postgresql)

mkdir build
cd build
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/user/SOCI -DWITH_BOOST=OFF -DWITH_POSTGRESQL=ON -DPOSTGRESQL_INCLUDE_DIR=/user/db/pgsql/include -DPOSTGRESQL_LIBRARIES=/user/db/pgsql/lib/libpq.a -DSOCI_POSTGRESQL=ON -DWITH_ODBC=OFF -DWITH_FIREBIRD=OFF -DWITH_DB2=OFF -DWITH_SQLITE3=OFF -DWITH_ORACLE=OFF -DWITH_MYSQL=OFF ../.
make
make install
