Back to home page

sPhenix code displayed by LXR

 
 

    


Warning, /JETSCAPE/external_packages/trento/doc/installation.rst is written in an unsupported language. File is not indexed.

0001 Installation
0002 ============
0003 Prerequisites:
0004 
0005 - `CMake <http://www.cmake.org>`_ 3.4+
0006 - A `C++11 compiler <http://en.cppreference.com/w/cpp/compiler_support>`_ (preferably GCC 4.8+ or Clang 3.3+)
0007 - The `Boost <http://www.boost.org>`_ C++ libraries 1.50+, including runtime components  ``filesystem`` and ``program_options``
0008 - (optional) The `HDF5 <http://www.hdfgroup.org/HDF5>`_ C++ library
0009 
0010 All these dependencies are readily available on any operating system.
0011 Some example installation commands for a few Linux distributions:
0012 
0013 Ubuntu::
0014 
0015    apt-get install cmake g++ libboost-dev libboost-{filesystem,program-options}-dev libhdf5-dev
0016 
0017 Fedora::
0018 
0019    yum install cmake gcc-c++ boost boost-{filesystem,program_options} hdf5 hd5-devel
0020 
0021 Arch::
0022 
0023    pacman -S cmake gcc boost boost-libs hdf5
0024 
0025 After installing the dependencies, download the `latest release <https://github.com/Duke-QCD/trento/releases/latest>`_ or `clone the repository <https://github.com/Duke-QCD/trento>`_, then compile and install T\ :sub:`R`\ ENTo through the standard CMake sequence::
0026 
0027    mkdir build && cd build
0028    cmake ..
0029    make install
0030 
0031 This will install the compiled binary to ``~/.local/bin/trento``.
0032 If you do not want this to happen, run ``make`` instead of ``make install`` and the binary will be left at ``build/src/trento``.
0033 The remainder of this document assumes ``trento`` is in your ``PATH``.
0034 
0035 The code is `continuously tested <https://travis-ci.org/Duke-QCD/trento>`_ on Ubuntu with GCC and Clang.
0036 It should run just as well on any Linux distribution or OS X, and probably on Windows.
0037 Other compilers should work but may require modifying the compiler flags.