Download and installation of realroot

1.Download

Source code.

The latest version under development can be obtained with:

svn checkout https://scm.gforge.inria.fr/svn/mmx/realroot

2.Dependencies

Here is the list of package(s) to be installed before configuring realroot from its source code:

src rpm deb port (Mac)
gmp-4.3.1 gmp-devel libgmp-dev gmp

To construct the glue (GLUE=ON) with the mmx interpreter, the following packages should be installed:

src rpm deb port (Mac)
numerix numerix

3.Configuration

To run the configuration, cmake (version at least 2.8) should be available on your platform.

Local installation. The package can be configured out-of-source (eg. in a folder ../build) as follows:

cmake ../(path_to_package)
make

The folder where the construction will be run is in this case ../build.

Global installation. If you want to install it globally in your environment after it is compiled, you can run the following instructions (possibly with the superuser rights):

cmake ../(path_to_package) -DCMAKE_INSTALL_PREFIX=<install_dir>
make
make install

where <install_dir> is the folder where to install the package so that the libraries go in <install_dir>/lib; and the headers in <install_dir>/include. If not specified, the package is installed by default in /usr/local.

To see the operations performed during the make command, you can use:

make VERBOSE=1

4.How to set locally your environment variables

In case you have not run make install, you can set up your environment locally in the folder build with:

cd ../build
source local_env

5.Using realroot

To use the package realroot in a cmake project, you can simply add the following lines in your file CMakeLists.txt:

find_package(Realroot)
include_directories (${REALROOT_INCLUDE_DIR})
link_directories (${REALROOT_LIBRARY_DIR})
link_libraries (${REALROOT_LIBRARIES})

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License. If you don't have this file, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.