Version du 12/11/2007

Downloading

A part of CRAC is based on the common c++ 2 library to manage threading easily. For convenience, the sources of this library is included in the project sources. What is not included is libxml2 and libpthread which must be installed separately. Furthermore, you will also need the includes of libxml2 (install libxml2-dev for Debian


Obviously CRAC uses sockets. Few years ago, I wrote a small C++ interface to Internet and Unix sockets, which is called CPPS and also included in the project.


Sources
current version (few bugs corrected since last version) 15 oct. 2009 CRAC-src.tar.gz
Binaries
Hum, no binary distribution is available for now... Lack of time !
Installation

Put the archive in your home directory, for example, and type :

> tar zxvf CRAC-src.tar.gz
> cd CRAC-project
> ./configure.sh
> make

Normally, it should build all components of CRAC. If you experience some problems with the compilation, be sure the includes and libraries needed by the project are installed correctly and in "standard" paths. If not, correct the Makefile in the CRAC/src directory).

Testing

If the build is successful, go into the examples/CRAC directory to see Makefile, XML files and sources of small CRAC applications. Just type make to compile these examples.


In order to run the examples, you must edit the VDM and execution description files (for example, archi_broad.xml and run_broad.xml) and make changes to machines IP or name, and path to the tasks. Then, type, for the broadcast example :

> cracboot arch_broad.xml
  ... few lines for initialization ending with "Waiting for running configuration"
> cracrun run_broad.xml

If it's not working, you surely missed something in the configuration of ssh, searching path or some mistakes in the XML files (see section