Installation
From stats++ wiki
The following instructions detail the installation of stats++ in its two primary use-cases.
Note that stats++ (temporarily) requires the jScience library. The following detail the installation of this as well.
Contents
(Temporary) jScience
Instructions
- Obtain jScience (provided with stats++); instructions here.
- In jScience-path/:
$ CXX=[C++ compiler] make
where jScience-path/ is the path to jScience.
- Add to either .bashrc, .bash_profile, or .profile (as appropriate):
export CPATH=jScience-path:$CPATH export CPATH=jScience-path/include:$CPATH export LIBRARY_PATH=jScience-path:$LIBRARY_PATHwhere jScience-path/ is the full path to jScience.
Header-only Library
stats++ is fundamentally a header-only library.
Irrespective of its end use, stats++ must be available in this format.
Instructions
- Obtain stats++; instructions here.
- Add to either .bashrc, .bash_profile, or .profile (as appropriate):
export CPATH=statsxx-path:$CPATH
where statsxx-path/ is the full path to stats++.
Executable
Several of the (major) features of stats++ are available as (buildable) executables.
Instructions
- (Recommended) Create a top-level directory in which to contain stats++ executables (statsxx-build-tld-path).
- Create a directory to build the executable (statsxx-build-exe-path) (recommended: in statsxx-build-tld-path/).
- In statsxx-build-exe-path/:
$ CXX=[C++ compiler] cmake statsxx-exe-path $ makewhere statsxx-exe-path/ is the path to the executable code of stats++ that you want to build.
- Add to either .bashrc, .bash_profile, or .profile (as appropriate):
export PATH=statsxx-build-exe-path:$PATH