2013-08-29 17:23:40 +02:00
|
|
|
.. index:: installation
|
2013-07-17 19:24:07 +02:00
|
|
|
|
|
|
|
.. highlight:: bash
|
|
|
|
|
|
|
|
.. _installation:
|
|
|
|
|
|
|
|
Installation
|
|
|
|
============
|
|
|
|
|
2013-08-29 17:23:40 +02:00
|
|
|
Prerequisite
|
|
|
|
------------
|
2013-07-17 19:24:07 +02:00
|
|
|
|
2013-08-27 19:17:17 +02:00
|
|
|
The TRIQS library relies on a certain number of standard libraries and tools described in
|
|
|
|
the :ref:`list of requirements <requirements>`. Beware in particular to the :ref:`C++ compilers<require_cxx_compilers>`
|
|
|
|
and to :ref:`Scientific Python tools<python_install>`.
|
|
|
|
Here are instructions to install
|
2013-08-29 17:23:40 +02:00
|
|
|
these necessary libraries on two standard systems:
|
2013-07-17 19:24:07 +02:00
|
|
|
|
2013-08-29 17:23:40 +02:00
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
|
|
installation/ubuntu
|
|
|
|
installation/osx_lion
|
2013-07-17 19:24:07 +02:00
|
|
|
|
2013-08-29 17:23:40 +02:00
|
|
|
Installation steps
|
|
|
|
------------------
|
2013-07-17 19:24:07 +02:00
|
|
|
|
2013-08-29 17:23:40 +02:00
|
|
|
#. Download the sources of TRIQS from github into a ``src`` directory::
|
2013-07-17 19:24:07 +02:00
|
|
|
|
2013-08-29 17:23:40 +02:00
|
|
|
$ git clone git@github.com:TRIQS/triqs.git src
|
2013-07-17 19:24:07 +02:00
|
|
|
|
2013-08-29 17:23:40 +02:00
|
|
|
#. Create an empty build directory where you will compile the code::
|
2013-07-17 19:24:07 +02:00
|
|
|
|
2013-08-29 17:23:40 +02:00
|
|
|
$ mkdir build && cd build
|
|
|
|
|
|
|
|
#. In the build directory call cmake specifying where the TRIQS library should be installed::
|
|
|
|
|
|
|
|
$ cmake -DCMAKE_INSTALL_PREFIX=path_to_install_directory ../src
|
|
|
|
|
2013-08-27 19:17:17 +02:00
|
|
|
If you omit CMAKE_INSTALL_PREFIX, the default `path_to_install_directory` is ./INSTALL_DIR.
|
|
|
|
|
|
|
|
Configuration options are described :ref:`here<install_options>`.
|
|
|
|
|
2013-08-29 17:23:40 +02:00
|
|
|
#. Compile the code, run the tests and install the library::
|
|
|
|
|
|
|
|
$ make
|
|
|
|
$ make test
|
|
|
|
$ make install
|
|
|
|
|
2013-08-27 19:17:17 +02:00
|
|
|
.. note::
|
|
|
|
|
|
|
|
We remind you that on multicore machine, make's option -jN (where N is the number of cores)
|
|
|
|
greatly speed up the compilation e.g. make -j8 on a 8 cores machine...
|
|
|
|
|
2013-08-29 17:23:40 +02:00
|
|
|
#. After the installation TRIQS has been installed using the standard UNIX
|
|
|
|
scheme:
|
|
|
|
|
|
|
|
* executables in ``path_to_install_directory/bin``.
|
|
|
|
|
|
|
|
* c++ and python libraries in ``path_to_install_directory/lib``.
|
|
|
|
|
|
|
|
* c++ headers in ``path_to_install_directory/include/triqs``.
|
2013-07-17 19:24:07 +02:00
|
|
|
|
2013-08-29 17:23:40 +02:00
|
|
|
* shared items in ``path_to_install_directory/share/triqs``.
|
|
|
|
|
|
|
|
|
2013-08-27 19:17:17 +02:00
|
|
|
Further reading
|
|
|
|
------------------
|
2013-07-17 19:24:07 +02:00
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
2013-08-27 19:17:17 +02:00
|
|
|
installation/install_options
|
2013-08-22 16:20:41 +02:00
|
|
|
installation/python
|
|
|
|
installation/clang
|
|
|
|
installation/changelog
|
2013-07-17 19:24:07 +02:00
|
|
|
|
2013-08-27 19:17:17 +02:00
|
|
|
..
|
|
|
|
installation/intel
|
|
|
|
|