Installing RST

See also

C++ Tutorial
Using installed RST in a C++ project
Java Tutorial
Using installed RST in a Java project
Python Tutorial
Using installed RST in a Python project

There are currently two ways to install the 0.9 version of RST:

  • From source
  • Debian Packages

From Source

  1. Install the RSC library (Explained as part of installing RSB).

  2. The whole source tree of RST, including all sub-projects, can be obtained by executing the command:

    $ git clone --recursive https://code.cor-lab.org/git/rst.git
    
  3. After that, RST can be built and installed like this:

    $ cd rst/rst-proto # after "git clone" command
    $ mkdir -p build && cd build
    $ cmake -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=PREFIX ..
    $ make
    $ make install
    

    where PREFIX is the directory into which RST should be installed (which is sometimes called “install prefix”).

    Note

    In case you decided to install RST into a different prefix than RSC, you need to inform cmake where RSC can be found. This can be achieved by adding the following argument to the cmake call:

    -DRSC_DIR=RSC_PREFIX/share/rsc
    
  4. Optional: Install converters bundled with RST

    $ cd rst/rst-converters # from same directory as "git clone" command
    $ mkdir -p build && cd build
    $ cmake -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=PREFIX ..
    $ make
    $ make install
    

    where PREFIX is the directory into which the RST converters should be installed.

Debian Packages

Debian packages for several versions of Ubuntu GNU/Linux are available from the CoR-Lab package repository.

  1. The following repository source line has to be added to /etc/apt/sources.list:

    deb http://packages.cor-lab.de/ubuntu/ RELEASENAME main testing
    

    where RELEASENAME is one of precise, quantal.

  2. After that, packages can be installed via

    $ sudo apt-get install rst0.9 librstconverters0.9
    

    Of course, it also possible to only install a subset of the above packages.

Note

This installation method only works with Ubuntu GNU/Linux. More information can be found here.

Table Of Contents

Related Documentation

This Page