• CMake 3.4+
  • A C++11 compiler (preferably GCC 4.8+ or Clang 3.3+)
  • The Boost C++ libraries 1.50+, including runtime components filesystem and program_options
  • (optional) The HDF5 C++ library

All these dependencies are readily available on any operating system. Some example installation commands for a few Linux distributions:


apt-get install cmake g++ libboost-dev libboost-{filesystem,program-options}-dev libhdf5-dev


yum install cmake gcc-c++ boost boost-{filesystem,program_options} hdf5 hd5-devel


pacman -S cmake gcc boost boost-libs hdf5

After installing the dependencies, download the latest release or clone the repository, then compile and install TRENTo through the standard CMake sequence:

mkdir build && cd build
cmake ..
make install

This will install the compiled binary to ~/.local/bin/trento. If you do not want this to happen, run make instead of make install and the binary will be left at build/src/trento. The remainder of this document assumes trento is in your PATH.

The code is continuously tested on Ubuntu with GCC and Clang. It should run just as well on any Linux distribution or OS X, and probably on Windows. Other compilers should work but may require modifying the compiler flags.