Installation

From stats++ wiki
Jump to: navigation, search

The following instructions detail the installation of stats++ in three primary use-cases.

Header-only Library

stats++ is has been written as a header-only library.

Irrespective of its end use, stats++ must be available in this format.

Instructions

  1. Obtain stats++; instructions here.
  2. Add to either .bashrc, .bash_profile, or .profile (as appropriate):
         export CPATH=statsxx-path:$CPATH
         export CPATH=statsxx-path/include:$CPATH

    where statsxx-path/ is the path to stats++.

(Temporary) Library

Some features of stats++ require it to be (temporarily) compiled.

Instructions

  1. Create a directory to build stats++ (statsxx-build-path).
  2. In statsxx-build-path/:
         $ CXX=[C++ compiler] cmake statsxx-path
         $ make

    where statsxx-path/ is the path to stats++.

  3. Add to either .bashrc, .bash_profile, or .profile (as appropriate):
         export LIBRARY_PATH=statsxx-build-path:$LIBRARY_PATH

Executable

Several of the (major) features of stats++ are available of as (buildable) executables.

Instructions

  1. Create a directory to build the executable (statsxx-build-exe-path).
  2. In statsxx-build-exe-path/:
         $ CXX=[C++ compiler] cmake statsxx-exe-path
         $ make

    where statsxx-exe-path/ is the path to the executable of stats++ that you want to build.

  3. Add to either .bashrc, .bash_profile, or .profile (as appropriate):
         export PATH=statsxx-build-exe-path:$PATH