Skip to content

Installation

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

Table of Contents

Requirements

ALPSCore

ALPSCore needs to be properly installed, see ALPSCore library.

Boost (>= 1.54.0)

Some compiled libraries (timer, chrono, system) are required in addition to header-file-only libraries.

Eigen3

For our linear algebra routines we use Eigen3.

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), unpack it and change into the created directory:

        $ tar -xzf CT-HYB.tar.gz
        $ cd CT-HYB/
      

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 \
$     -DBOOST_ROOT=/path/to/boost/install/dir \
$    ../CT-HYB
$ make
$ make test
$ make install

If you want to enable parallelization, please use a MPI C++ compiler.

Possible troubles

  • CMake picks up a wrong Boost library.
    If your build generation seems to pick up the wrong Boost library, the following may help:
cmake ..  -DBOOST_NO_SYSTEM_PATHS=ON -DBoost_NO_BOOST_CMAKE=ON
  • 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