Installation¶
Note : If build problems, please remove the build directory if it exists, then retry :
$ rm -rf build
Dependencies¶
Mandatory Dependencies¶
- Armadillo
- boost (mpi, serialization, filesystem, system)
Optional Dependencies¶
- snappy
- Postgresql
Pre-Steps¶
- Make sure you have a “bin” directory in your home folder
- Append the bin folder to your path. Add the following line to your ~/.bashrc: export PATH=”$PATH:~/bin”
- $ source ~/.bashrc
Linux (Ubuntu 16.04)¶
This installation procedure should work for many recent Linux flavors. For the following we present the instructions specific for Ubuntu or derivatives.
- Install the Dependencies
$ sudo apt-get install libarmadillo-dev libboost-all-dev cmake
- $ mkdir build && cd build && cmake -DBUILD_TESTS=OFF .. && make -j NUMBER_OF_CORES# replace NUMBER_OF_CORE by say = 4
sudo make install
Mac¶
This has been tested on macOS 10.13.6.
- Install the Dependencies (with Homebrew : https://brew.sh/)
$ brew install armadillo $ brew install boost $ brew install boost-mpi $ brew install postgresql $ brew install snappy
- $ mkdir build && cd build && cmake -DBUILD_MAC=ON -DBUILD_HOME=OFF .. && make -j NUMBER_OF_CORES# replace NUMBER_OF_CORE by say = 4
sudo make install
Graham, Ceder, mp2b, ms2b¶
$ module reset
$ module load nixpkgs/16.09 gcc/5.4.0 armadillo boost-mpi snappy cmake
- $ mkdir build && cd buildCXX=mpic++ cmake -DBUILD_GRAHAM=ON -DBUILD_MPI=ON -DBUILD_HOME=OFF ..make
- Copy the executaables to a know location on your path.For example: $ mkdir ~/bin && cp -i ../src/ctmo* ~/bin/Add the ~/bin to your path :in ~/.bashrc add the following line at the end:
export PATH=”$PATH:~/bin”
Beluga¶
$ module reset
$ module load nixpkgs/16.09 gcc/7.3.0 cmake armadillo/7.950.1 snappy boost-mpi cmake
- $ mkdir build && cd buildCXX=mpic++ cmake -DBUILD_GRAHAM=ON -DBUILD_MPI=ON -DBUILD_HOME=OFF ..make
- Copy the executaables to a know location on your path.For example: $ mkdir ~/bin && cp -i ../src/ctmo* ~/bin/Add the ~/bin to your path :in ~/.bashrc add the following line at the end:
export PATH=”$PATH:~/bin”