Installation
============

Required software:
1. any MPI implementation
2. GSL (GNU Scientific Library)
3. R (The R Project for Statistical Computing)
4. logp_mpi (The MPI LogP Benchmark) - optional
5. Gnuplot - optional

GSL
---
If GSL is intalled in non-default directory
$ export LD_LIBRARY_PATH=DIR/lib:$LD_LIBRARY_PATH

R
-
1. R sould be configured as a shared library
$ ./configure --prefix=DIR --enable-R-shlib=yes
$ make install
2. Set up environment
$ export R_HOME=DIR/lib/R
3. Install required packages
$ DIR/bin/R
> install.packages(c(”sandwich”, ”strucchange”, ”zoo”))
4. If R is intalled in non-default directory
$ export LD_LIBRARY_PATH=$R_HOME/lib:$LD_LIBRARY_PATH

logp_mpi
--------
$ wget ftp://ftp.cs.vu.nl/pub/kielmann/logp_mpi.tar.gz
$ tar -zxvf logp_mpi.tar.gz
$ cd logp_mpi-1.4
$ make

For developers
--------------

Required software:
1. Subversion
2. GNU autotools

$ svn co https://hcl.ucd.ie/repos/CPM/trunk CPM
$ cd CPM
$ svn log -v > ChangeLog
$ autoreconf --install
$ mkdir build
$ cd build
$ ../configure --prefix=DIR --enable-debug
$ make install

To create a package:
$ make dist

For users
---------

Download and untar the latest package from http://hcl.ucd.ie/project/cpm

$ mkdir build
$ cd build
$ ../configure --prefix=DIR
$ make install

Configuration
-------------

Check configure options:
$ ../configure -h
