Skip to content

Installation

Hiroshi Shinaoka edited this page Aug 17, 2016 · 15 revisions

Table of Contents

Requirements

ALPSCore

ALPSCore needs to be properly installed, see ALPSCore library.

Boost (>= 1.54.0)

Only header-file libraries are needed. The dependencies will be taken care of by ALPSCore.

Eigen3

Head-file libraries for linear algebra.

From package managers

  • Mac OS X
    To be written

Manual source installation

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.

The CT-HYB package can be obtained by following methods:

  • Clone Git repository at Github
$ git clone https://github.com/ALPSCore/CT-HYB.git
  • From release tarball:
    1. Download a release tarball from https://github.com/ALPSCore/CT-HYB/releases

    2. Rename the downloaded tarball to CT-HYB.tar.gz (or CT-HYB.zip, if you chose the zip version) and unpack it:

        $ tar -xzf CT-HYB.tar.gz
      

Then, make a (separated) build directly, and provide something like:

$ mkdir build
$ cd build
$ cmake\
$     -DALPSCore_DIR=/path/to/ALPSCore \
$     -DCMAKE_INSTALL_PREFIX=/path/to/install/dir \
$     -DCMAKE_CXX_COMPILER=/path/to/C++/compiler \
$    ../CT-HYB
$ make
$ make test
$ make install

If you want to enable parallelization, please use a MPI C++ compiler. Note that if you enable MPI for the CT-HYB package, MPI must be enabled also in the installation of ALPSCore. If cmake does not find boost, please tell cmake the installation directory of boost by using the option "-DBOOST_ROOT=***".

Trouble shooting

  • 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