Simple instructions for building this library in CentOS 7.x
This is required to install cmake3 (only for build)
yum -y install epel-release
These are the compiler and other build tools
yum -y groupinstall "Development Tools"
yum -y install cmake3
These are the required (mandatory) libraries
yum -y install openssl-devel jsoncpp-devel
These are the optional libraries for database compatibility
yum -y install sqlite-devel postgresql-devel mysql-devel
This is the default build for the library:
PREFIXPATH=/opt/osslibs
prjdir=$(pwd)
cmake3 . -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX:PATH=${PREFIXPATH} -DCMAKE_INSTALL_LIBDIR=lib -B~/builds/libMantids-Build-Shared
cd ~/builds/libMantids-Build-Shared
make clean
make -j12 install
cd "$prjdir"
cmake3 . -DCMAKE_INSTALL_PREFIX:PATH=${PREFIXPATH} -DCMAKE_INSTALL_LIBDIR=lib -B~/builds/libMantids-Build-Static
cd ~/builds/libMantids-Build-Static
make clean
make -j12 install
cd "$prjdir"
You can build this in one system, and you only need install the following runtimes:
yum -y install jsoncpp openssl
If you need database support:
yum -y install sqlite mysql postgresql