Skip to content

Installation

Hiroshi Shinaoka edited this page Jun 8, 2016 · 15 revisions

Table of Contents

Commands

The solver depends on ALPSCore libraries and some Boost libraries (timer, chrono, system). These libraries must be preinstalled. Note that the Boost timer, chrono, system libraries are not header-file-only libraries and must be compiled.

To install provide something like (for bash & zsh):

$ git clone https://github.com/ALPSCore/CT-HYB.git
$ mkdir build
$ cd build
$ export ALPSCore_DIR=/opt/ALPSCore
$ export CXX=/opt/local/bin/mpicxx-openmpi-mp
$ export BOOST_ROOT=~/work/src/boost_1_59_0
$ export CXX=/path/to/MPI/C++/compiler
$ cmake -DCMAKE_INSTALL_PREFIX=/path/to/install/dir ../CT-HYB
$ make
$ make test
$ make install

Troubles

  • Some libraries are not found at runtime.
    When you install the executalbe to your installation path by "make install", CMake removes the paths of dynamic libraries from the binary. When you launch "/path/to/install/dir/hybmat", some dynamic libraries which were visible in the build may not be found. In this case, please set your environment variables correctly (e.g., LD_LIBRARY_PATH) so that the system can find these libraries at runtime. More information is found [here] (https://cmake.org/Wiki/CMake_RPATH_handling).
Clone this wiki locally